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

ClassCastException #957

Closed
amir1111 opened this Issue May 25, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@amir1111

have seen this issue mentioned in other places, but they are all marked as closed,
but I don't think it's resolved, because I have compiled and tried the latest version, and also tried different frameworks, but still couldn't get it to work

have put the apk here:

http://www.filedropper.com/comcarrotcarrotfantasy398

and here's the decompile output/errors:

I: Using Apktool 2.0.1-825476-SNAPSHOT on com.carrot.carrotfantasy_398.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Amir\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.
value.ResStyleValue cannot be cast to brut.androlib.res.data.value.ResAttr
        at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:65)
        at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:496)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252
)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:134)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
        at brut.apktool.Main.cmdDecode(Main.java:165)
        at brut.apktool.Main.main(Main.java:81)
@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches May 25, 2015

Owner

Confirmed.

Owner

iBotPeaches commented May 25, 2015

Confirmed.

@amir1111

This comment has been minimized.

Show comment
Hide comment
@amir1111

amir1111 May 27, 2015

found another app that matches this error and uploaded it to
http://www.filedropper.com/baoweiluobu2300_1

found another app that matches this error and uploaded it to
http://www.filedropper.com/baoweiluobu2300_1

@amir1111

This comment has been minimized.

Show comment
Hide comment
@amir1111

amir1111 Jun 4, 2015

has to do with the value -
0x01030007 style/Theme.NoTitleBar.Fullscreen (in both apps) - the address is for the second app

amir1111 commented Jun 4, 2015

has to do with the value -
0x01030007 style/Theme.NoTitleBar.Fullscreen (in both apps) - the address is for the second app

@cutler

This comment has been minimized.

Show comment
Hide comment
@cutler

cutler Jul 29, 2015

What time can solve? 2.0.1 still have this problem

cutler commented Jul 29, 2015

What time can solve? 2.0.1 still have this problem

iBotPeaches added a commit that referenced this issue Oct 15, 2015

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Oct 15, 2015

Owner
ibotpeaches@tombstone:~/Downloads/Apktool/Bug957$ apktool debug d com.carrot.carrotfantasy_398.apk -f
I: Using Apktool 2.0.3-e7c1bc-SNAPSHOT on com.carrot.carrotfantasy_398.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@tombstone:~/Downloads/Apktool/Bug957$ apktool b com.carrot.carrotfantasy_398
I: Using Apktool 2.0.3-e7c1bc-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...

A bit late, but looks fixed.

Owner

iBotPeaches commented Oct 15, 2015

ibotpeaches@tombstone:~/Downloads/Apktool/Bug957$ apktool debug d com.carrot.carrotfantasy_398.apk -f
I: Using Apktool 2.0.3-e7c1bc-SNAPSHOT on com.carrot.carrotfantasy_398.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@tombstone:~/Downloads/Apktool/Bug957$ apktool b com.carrot.carrotfantasy_398
I: Using Apktool 2.0.3-e7c1bc-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...

A bit late, but looks fixed.

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