sky201503 / android-apktool-1

Automatically exported from code.google.com/p/android-apktool
0 stars 0 forks source link

error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme'. #369

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Fail to build apk if there is a xml with something like 
parent="@*android:style/Theme.Dialog"
You can reproduce it by debuild and build it again the attached apk.
Btw, there is no problem in older version apktool.

What version of the product are you using? On what operating system?
apktool 1.5 in Mac OS

Thank You

Original issue reported on code.google.com by tony....@enterproid.com on 10 Dec 2012 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago
And 1.5.1 apktool even fail to decode it.

Original comment by tony....@enterproid.com on 10 Dec 2012 at 6:48

GoogleCodeExporter commented 9 years ago
Unable to debuild and build the attached apk due to the same error. 

Version: v1.5.0.5a056e3 on Windows.

Logs are also attached.

Original comment by autos...@gmail.com on 12 Dec 2012 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
dtg.apk : http://pastebin.com/vdTvDte6

tt.apk : Has 3 bad PNGs, which cause the errors. Replacing them with null 
images makes it fine. 

libpng error: Not a PNG file
ERROR: Failure processing PNG image 
/home/ibotpeaches/Downloads/Apktool/tt/res/drawable/black_theme_1.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image 
/home/ibotpeaches/Downloads/Apktool/tt/res/drawable/white_theme_1.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image 
/home/ibotpeaches/Downloads/Apktool/tt/res/drawable/white_theme_4.png

Not a bug.

Original comment by connor.tumbleson on 13 Dec 2012 at 1:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry, I mean I build from the latest master code. I git clone your code and 
build it following ur instruction.

Original comment by ming030...@gmail.com on 15 Dec 2012 at 9:06

GoogleCodeExporter commented 9 years ago
The problem is caused by those 3 bad PNGs. Not a bug in Apktool. Please re-open 
a bug if this is wrong.

Original comment by connor.tumbleson on 19 Dec 2012 at 2:12

GoogleCodeExporter commented 9 years ago
Are u trying the wrong apk, for dtg.apk, it should not be the png cases.

Please try to use the apktool compiled from master branch.

Original comment by tony....@enterproid.com on 19 Dec 2012 at 2:29

GoogleCodeExporter commented 9 years ago
Just change:
parent="@*android:style/Theme.Dialog"
to:
parent="@android:style/Theme.Dialog"

I think apktool made a mistake about "*" 

Original comment by houshun...@gmail.com on 4 Jan 2013 at 9:26