kuter007 / android-apktool

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

Not Compileing only #638

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.install the frameworks-res.apk 
2.then install twframework-res.apk (because it was a stock touchwiz rom android 
4.3 - Galaxy Grand 2 SM-G7102 D1 firmware)
3. decompile the SystemUI.apk
4. edited some images .9.png files and the value folder was edited
5. When i Compile it back then it gives an error. (and also when without any 
editing it gives the same error)

What is the expected output? What do you see instead?
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_notification_p
anel_title.xml:14: error: Error: No resource found that matches the given name 
(at 'style' with value '@style/SystemBarNotificationText').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_notification_p
anel_title.xml:19: error: Error: No resource found that matches the given name 
(at 'style' with value '@style/SystemBarNotificationText').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_notification_p
anel_title.xml:21: error: Error: No resource found that matches the given name 
(at 'style' with value '@style/SystemBarNotificationText').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:5: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsRow').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:6: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsIcon').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:7: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsContents').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:10: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:11: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsRow').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:12: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsIcon').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:13: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsContents').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:15: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:16: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsRow').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:17: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsIcon').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:18: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsContents').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:21: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:22: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsRow').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:23: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsIcon').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:26: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:27: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsRow').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:28: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsIcon').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:29: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsContents').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:32: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:33: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsRow').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:34: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsIcon').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:35: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsContents').
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\system_bar_settings_view.
xml:37: error: Error: No resource found that matches the given name (at 'style' 
with value '@style/SystemBarPanelSettingsPanelSeparator').
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: 
[C:\Users\BaBa\AppData\Local\Temp\brut_util_Jar_6284029572274361618.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 18, --target-sdk-version, 18, 
--version-code, 18, --version-name, 4.3-G7102XXUAND1, -F, 
C:\Users\BaBa\AppData\Local\Temp\APKTOOL5014365442632337891.tmp, -0, arsc, -I, 
C:\Users\BaBa\apktool\framework\1.apk, -S, 
C:\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, 
C:\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
    at brut.androlib.Androlib.buildResources(Androlib.java:363)
    at brut.androlib.Androlib.build(Androlib.java:286)
    at brut.androlib.Androlib.build(Androlib.java:258)
    at brut.apktool.Main.cmdBuild(Main.java:236)
    at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: 
[C:\Users\BaBa\AppData\Local\Temp\brut_util_Jar_6284029572274361618.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 18, --target-sdk-version, 18, 
--version-code, 18, --version-name, 4.3-G7102XXUAND1, -F, 
C:\Users\BaBa\AppData\Local\Temp\APKTOOL5014365442632337891.tmp, -0, arsc, -I, 
C:\Users\BaBa\apktool\framework\1.apk, -S, 
C:\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, 
C:\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command: 
[C:\Users\BaBa\AppData\Local\Temp\brut_util_Jar_6284029572274361618.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 18, --target-sdk-version, 18, 
--version-code, 18, --version-name, 4.3-G7102XXUAND1, -F, 
C:\Users\BaBa\AppData\Local\Temp\APKTOOL5014365442632337891.tmp, -0, arsc, -I, 
C:\Users\BaBa\apktool\framework\1.apk, -S, 
C:\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, 
C:\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)
    ... 6 more
The system cannot find the file specified.
The system cannot find the file specified.

What version of the product are you using? On what operating system?
i was using "windows 8 pro" and "apktool 1.5.2" 

Please provide any additional information below.
i have used the Apk-Multitool and also used the apktool and i get the same 
error. 

Original issue reported on code.google.com by aapa...@gmail.com on 26 May 2014 at 5:42

GoogleCodeExporter commented 9 years ago
Please attach the apks.

Original comment by connor.tumbleson on 26 May 2014 at 12:08

GoogleCodeExporter commented 9 years ago
i couldn't attach apk file in comment so i have uploaded it to this Link : 

https://mega.co.nz/#F!oAYThb5K!vPUxBo3wrLni1N2N13HKmg

it contain all 3 files

Original comment by aapa...@gmail.com on 26 May 2014 at 12:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same issue. However i found what causes the error - build command 
doesn't put the second framework in aapt commmand line.

If you use aapt manually and add '-I 2.apk' it will compile resources 
correctly. I hope it will be fixed soon

Original comment by thug1...@gmail.com on 27 May 2014 at 1:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please don't spamming comments. I get an email on every one. I have the APKs. 
Please wait.

Original comment by connor.tumbleson on 27 May 2014 at 3:19

GoogleCodeExporter commented 9 years ago
@thug1337

You can replicate this behavior by adding the framework ids into the 
usesFramework ids map of apktool.yml

usesFramework:
  ids:
  - 1
  - 2

Will include -I 1.apk -I 2.apk. However, I did not find it to be the case that 
this solved anything. 

Original comment by connor.tumbleson on 29 May 2014 at 1:16

GoogleCodeExporter commented 9 years ago
@connor.tumbleson 

Sir, i got tempory solution for it the error.. as it was get error in the line 
in style so i removed the style=@style/---- and then it build successfully and 
because it was a layout so i haven't change a in it so i can copy the that file 
from the original apk file.
--< it is Working >--

Original comment by aapa...@gmail.com on 29 May 2014 at 3:23

GoogleCodeExporter commented 9 years ago
Okay, I will close then.

Original comment by connor.tumbleson on 31 May 2014 at 11:34