desword / android-apktool

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

Enter one-line summary #544

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.decompile Playmusic.apk
2.make no changes
3.recompile Playmusic.apk

What is the expected output? What do you see instead?
E:\apktools\apktool>apktool.bat b Playmusic.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:396: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Theme'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:464: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:504: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:551: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:581: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:597: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base.DropDownItem'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:623: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:630: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Light.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:647: error: Error 
retrieving parent for item: No resource found that matches the given name 
'TextAppearance.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:680: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:872: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Theme.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:396: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Theme'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:464: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:504: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:551: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:581: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:597: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base.DropDownItem'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:623: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:630: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Light.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:647: error: Error 
retrieving parent for item: No resource found that matches the given name 
'TextAppearance.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:680: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
E:\apktools\apktool\Playmusic.apk\res\values\styles.xml:872: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Theme.AppCompat.Base'.
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 18, -F, 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL5115584047173766876.tmp, -0, arsc, 
-I, C:\Documents and Settings\Administrator\apktool\framework\1.apk, -S, 
E:\apktools\apktool\Playmusic.apk\res, -M, 
E:\apktools\apktool\Playmusic.apk\AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
    at brut.androlib.Androlib.buildResources(Androlib.java:283)
    at brut.androlib.Androlib.build(Androlib.java:206)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 18, -F, 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL5115584047173766876.tmp, -0, arsc, 
-I, C:\Documents and Settings\Administrator\apktool\framework\1.apk, -S, 
E:\apktools\apktool\Playmusic.apk\res, -M, 
E:\apktools\apktool\Playmusic.apk\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, 
--min-sdk-version, 8, --target-sdk-version, 18, -F, 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL5115584047173766876.tmp, -0, arsc, 
-I, C:\Documents and Settings\Administrator\apktool\framework\1.apk, -S, 
E:\apktools\apktool\Playmusic.apk\res, -M, 
E:\apktools\apktool\Playmusic.apk\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
    ... 6 more

What version of the product are you using? On what operating system?
apktool 1.5.2 on 32-bit xp

Please provide any additional information below.
I can't recompile the apk to a different directory, either. Also, aapt works 
fine from the terminal. 
Playmusic.apk is 
<manifest android:versionCode="1106" android:versionName="5.1.1106K.749200" 
package="com.google.android.music"
  xmlns:android="http://schemas.android.com/apk/res/android">

Original issue reported on code.google.com by zengxian...@gmail.com on 5 Nov 2013 at 6:50

GoogleCodeExporter commented 9 years ago
I believe this is fixed in 2.x, can you attach the apk to confirm? Or give me 
the package name so I can pull the apk from store?

Original comment by connor.tumbleson on 5 Nov 2013 at 12:20

GoogleCodeExporter commented 9 years ago
I don't know why I can't add a comment in the issues. The package name is
google Playmusic.apk ,
download link '
https://play.google.com/store/apps/details?id=com.google.android.music '

Original comment by zengxian...@gmail.com on 12 Nov 2013 at 3:30

GoogleCodeExporter commented 9 years ago
http://pastebin.com/1PM1TXnb

Could not duplicate on 2.0.0b8

Original comment by connor.tumbleson on 12 Nov 2013 at 12:43