Apktool: custom attributes casted to android wrongly

Hi I am trying to build the apk from RE’d apk after making some changes to the AndroidManifest.xml file but i keep getting this error:

`I: Using Apktool 2.0.3
I: Copying a classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
APKTool\a\res\xml\application_settings.xm
l:11: error: No resource identifier found for attribute 'min_value' in package '
android'

APKTool\a\res\xml\application_settings.xm
l:11: error: No resource identifier found for attribute 'max_value' in package '
android'

APKTool\a\res\xml\application_settings.xm
l:11: error: No resource identifier found for attribute 'default_value' in packa
ge 'android'

APKTool\a\res\xml\application_settings.xm
l:15: error: No resource identifier found for attribute 'min_value' in package '
android'

APKTool\a\res\xml\application_settings.xm
l:15: error: No resource identifier found for attribute 'max_value' in package '
android'

APKTool\a\res\xml\application_settings.xm
l:15: error: No resource identifier found for attribute 'default_value' in packa
ge 'android'

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\\AppData\Local\Temp\brut_util_Jar_7507297341147460085.tmp, p, --forced-package
-id, 127, --version-code, 50201, --version-name, 5.2.1, -F, C:\Users\\Ap
pData\Local\Temp\APKTOOL3067853975455239040.tmp, -0, arsc, -0, arsc, -I, C:\User
s\\apktool\framework\1.apk, -S, APKTool\a\res, -M, APKTool\a\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
        at brut.androlib.Androlib.buildResources(Androlib.java:410)
        at brut.androlib.Androlib.build(Androlib.java:298)
        at brut.androlib.Androlib.build(Androlib.java:268)
        at brut.apktool.Main.cmdBuild(Main.java:225)
        at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec command: [C:\Users\\AppData\Local\Temp\brut_util_Jar_7507297341147
460085.tmp, p, --forced-package-id, 127, --version-code, 50201, --version-name,
5.2.1, -F, C:\Users\\AppData\Local\Temp\APKTOOL3067853975455239040.tmp,
-0, arsc, -0, arsc, -I, C:\Users\\apktool\framework\1.apk, -S, APKTool\a\res, -M, APKTool\\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:425)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\
\AppData\Local\Temp\brut_util_Jar_7507297341147460085.tmp, p, --forced-package-i
d, 127, --version-code, 50201, --version-name, 5.2.1, -F, C:\Users\\AppD
ata\Local\Temp\APKTOOL3067853975455239040.tmp, -0, arsc, -0, arsc, -I, C:\Users\
\apktool\framework\1.apk, -S, D:\Personal\software\android rev tools\APK
Tool\a\res, -M, APKTool\a\AndroidManifest
.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:419)
        ... 6 `more

Let me know if you require access to the file also, hope you can help resolve.

PS: Link to APK: http://www30.zippyshare.com/v/GwEWjfx8/file.html

Let me know if you need more information

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 24 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Yes. As long as this bug is “Open”, it is unfixed. Plenty of research above though for anyone to help out.