lnln1111 / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

Different value resource types grouped in type-specific file causes "Resource entry XXX is already defined" #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an apk with bool, integer and string types inside 
res/values/strings.xml
2. Decompile the apk using apktool
3. Replace res/values/strings.xml with localized (ie. Spanish) version 
cantaining all the original keys from APK's source res/values/strings.xml
5. Build APK with patched-over contents using apktool

What is the expected output? What do you see instead?
The expected result is a succesfull build, but instead I get one error  
"Resource entry XXX is already defined" for each key that was extracted to 
their separate files: bools.xml, arrays.xml, integers.xml....

What version of the product are you using? On what operating system?
apktool: 1.4.3

Please provide any additional information below.

Original issue reported on code.google.com by froste...@gmail.com on 8 Feb 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Spanish values should be in values-es

Thats why you get that error.

Original comment by connor.tumbleson on 29 Dec 2012 at 2:43