Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Multiple resource:" error with API level 11 APKs. #140

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 4 comments
Closed

"Multiple resource:" error with API level 11 APKs. #140

GoogleCodeExporter opened this issue Mar 18, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use apktool to install attached framework
2. Use apktool to decode/build to attached Calculator.apk

What is the expected output? What do you see instead?

C:\Users\test\Desktop\apktool>apktool d Calculator.apk calc
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x7f040001 layout/main, c
onfig=-land
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
        at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
        at brut.androlib.Androlib.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.decode(Unknown Source)
        at brut.apktool.Main.cmdDecode(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)

C:\Users\test\Desktop\apktool>apktool build -d Calculator Calculator.apk
Exception in thread "main" brut.androlib.AndrolibException: 
brut.directory.PathNotExist: apktool.yml
        at brut.androlib.Androlib.readMetaFile(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.apktool.Main.cmdBuild(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Caused by: brut.directory.PathNotExist: apktool.yml
        at brut.directory.AbstractDirectory.getFileInput(Unknown Source)
        ... 5 more

C:\Users\test\Desktop\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x01030065 style/TextAppe
arance.StatusBar.Title, config=[DEFAULT]
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
        at brut.androlib.Androlib.installFramework(Unknown Source)
        at brut.apktool.Main.cmdInstallFramework(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)

What version of the product are you using? On what operating system?
1.3.2 on Windows 7 x64
Tried copying latest version of aapt.exe from fresh SDK download, still have 
the same problem.

Original issue reported on code.google.com by TravisCH...@gmail.com on 8 Mar 2011 at 7:08

Attachments:

@GoogleCodeExporter
Copy link
Author

Sorry, should have searched first. Merge this with Issue 131.

Original comment by TravisCH...@gmail.com on 8 Mar 2011 at 9:41

@GoogleCodeExporter
Copy link
Author

Original comment by Brut.alll on 3 May 2011 at 1:54

  • Changed state: Duplicate

@GoogleCodeExporter
Copy link
Author

also same issue with Honeycomb 3.2 .apk 

apktool d systemui.apk  ( tried with and without installing current 
framework-res.apk )

I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-11-22-22-09-2
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x7f090009 dimen/status_bar_icon_padding, config=-port-v13at 
brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(AR SCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(A RSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARS CDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage( ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(AR SCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCD ecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackages 
FromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(An drolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(An drolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:4 4)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.ja va:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98 )
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)

can you release an update that just force decompiles past this error and warns 
you to fix before compiling? this is for Dells Streak 7 Honeycomb, turns out we 
cant decompile any systemui.apk for any ROM for streak 7. :(     

sad panda.

Original comment by MrRot...@gmail.com on 23 Nov 2011 at 2:02

@GoogleCodeExporter
Copy link
Author

Same error! It doesn't work!!

Original comment by sartom...@gmail.com on 7 Dec 2011 at 9:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant