Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

apktool problem

OP ykumar00

4th January 2014, 11:45 AM   |  #1  
OP Senior Member
Thanks Meter: 189
 
489 posts
Join Date:Joined: Jan 2012
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?
4th January 2014, 11:50 AM   |  #2  
SMillerNL's Avatar
Recognized Contributor
Flag Lisse
Thanks Meter: 1,055
 
3,254 posts
Join Date:Joined: Sep 2011
Donate to Me
More
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
4th January 2014, 01:02 PM   |  #3  
OP Senior Member
Thanks Meter: 189
 
489 posts
Join Date:Joined: Jan 2012
Everything is freshly downloaded, newest versions of Java JRE, Java SDK, apktool
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes