5,603,646 Members 37,287 Now Online
XDA Developers Android and Mobile Development Forum

apktool problem

Tip us?
 
ykumar00
Old
#1  
Senior Member - OP
Thanks Meter 185
Posts: 470
Join Date: Jan 2012
Default apktool problem

Every time I try to decompile an app, I get this:

Code:
C:\Windows>apktool d w.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Inderchand\apktool\framework\1.apk

I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
showAsAction, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0103012b
        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
        at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
        at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
        at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:44)
        at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:48)
        at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResB
agValue.java:40)
        at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:440)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243
)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
        at brut.apktool.Main.cmdDecode(Main.java:146)
        at brut.apktool.Main.main(Main.java:77)
Google search leads me to other people having the problem, but no solution. Help?
Please Don't Click Here.

Get Free 20GB Cloud Storage on Copy by registering with this Referral Link

Press Thanks If I Helped

Nexus 4
 
SMillerNL
Old
#2  
SMillerNL's Avatar
Recognized Contributor
Thanks Meter 962
Posts: 3,003
Join Date: Sep 2011
Location: Lisse

 
DONATE TO ME
Is the version up to date? What is your Java version? Do you have the right aapt file?

Sent from my Nexus 4 using Tapatalk

"I actually don't want any Thanks. I don't need to be Thanked, because I just want to make XDA a better place..."
http://team-fun.eu
 
ykumar00
Old
#3  
Senior Member - OP
Thanks Meter 185
Posts: 470
Join Date: Jan 2012
Everything is freshly downloaded, newest versions of Java JRE, Java SDK, apktool
Please Don't Click Here.

Get Free 20GB Cloud Storage on Copy by registering with this Referral Link

Press Thanks If I Helped

Nexus 4
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes