kuter007 / android-apktool

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

Can't compile error #692

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.decompile apk 
2.no change 
3.coompile output

What is the expected output? What do you see instead?
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2827: error: Public sym
bol drawable/viewer_bottom_btn_04_dim declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2828: error: Public sym
bol drawable/viewer_bottom_btn_04_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2829: error: Public sym
bol drawable/viewer_bottom_btn_04_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2830: error: Public sym
bol drawable/viewer_bottom_btn_04_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2831: error: Public sym
bol drawable/viewer_bottom_btn_05_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2832: error: Public sym
bol drawable/viewer_bottom_btn_05_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2833: error: Public sym
bol drawable/viewer_bottom_btn_05_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2834: error: Public sym
bol drawable/viewer_bottom_line declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2835: error: Public sym
bol drawable/viewer_filter_btn_dim declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2836: error: Public sym
bol drawable/viewer_filter_btn_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2837: error: Public sym
bol drawable/viewer_filter_btn_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2838: error: Public sym
bol drawable/viewer_filter_btn_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2839: error: Public sym
bol drawable/viewer_guide declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:1006: error: Public sym
bol drawable/viewer_guide_center declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2840: error: Public sym
bol drawable/viewer_info_data_indicator_01 declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2841: error: Public sym
bol drawable/viewer_info_data_indicator_02 declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2842: error: Public sym
bol drawable/viewer_memo_popup_body declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2843: error: Public sym
bol drawable/viewer_memo_popup_title declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2844: error: Public sym
bol drawable/viewer_original_btn_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2845: error: Public sym
bol drawable/viewer_original_btn_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2846: error: Public sym
bol drawable/viewer_original_btn_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2847: error: Public sym
bol drawable/viewer_photo_bg declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2848: error: Public sym
bol drawable/viewer_title_bg declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2849: error: Public sym
bol drawable/viewer_title_btn_design_dim declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2850: error: Public sym
bol drawable/viewer_title_btn_design_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2851: error: Public sym
bol drawable/viewer_title_btn_design_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2852: error: Public sym
bol drawable/viewer_title_btn_design_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2853: error: Public sym
bol drawable/viewer_title_btn_favorite_off_dim declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2854: error: Public sym
bol drawable/viewer_title_btn_favorite_off_nor declared here is not defined.
D:\brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common
.BrutException: could not exec command: [aapt.exe, p, --min-sdk-version, 14, --t
arget-sdk-version, 14, --version-code, 688, --version-name, 3.5.5, -F, C:\Users\
bslee\AppData\Local\Temp\APKTOOL228528208019010196.tmp, -0, arsc, -I, C:\Users\b
slee\apktool\framework\1.apk, -S, D:\test\UBox_market_OneID_biz_test\res, -M, D:
\test\UBox_market_OneID_biz_test\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
        at brut.androlib.Androlib.buildResources(Androlib.java:383)
        at brut.androlib.Androlib.build(Androlib.java:286)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:240)
        at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec command: [aapt.exe, p, --min-sdk-version, 14, --target-sdk-version, 14, --
version-code, 688, --version-name, 3.5.5, -F, C:\Users\bslee\AppData\Local\Temp\
APKTOOL228528208019010196.tmp, -0, arsc, -I, C:\Users\bslee\apktool\framework\1.
apk, -S, D:\test\UBox_market_OneID_biz_test\res, -M, D:\test\UBox_market_OneID_b
iz_test\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt.exe, p, --mi
n-sdk-version, 14, --target-sdk-version, 14, --version-code, 688, --version-name
, 3.5.5, -F, C:\Users\bslee\AppData\Local\Temp\APKTOOL228528208019010196.tmp, -0
, arsc, -I, C:\Users\bslee\apktool\framework\1.apk, -S, D:\test\UBox_market_OneI
D_biz_test\res, -M, D:\test\UBox_market_OneID_biz_test\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
        ... 6 more
test\UBox_market_OneID_biz_test\res\values\public.xml:2855: error: Public symbol
 drawable/viewer_title_btn_favorite_off_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2856: error: Public sym
bol drawable/viewer_title_btn_favorite_on_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2857: error: Public sym
bol drawable/viewer_title_btn_favorite_on_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2858: error: Public sym
bol drawable/viewer_title_btn_photo_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2859: error: Public sym
bol drawable/viewer_title_btn_photo_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2860: error: Public sym
bol drawable/viewer_title_btn_photo_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2861: error: Public sym
bol drawable/viewer_title_btn_play_foc declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2862: error: Public sym
bol drawable/viewer_title_btn_play_nor declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2863: error: Public sym
bol drawable/viewer_title_btn_play_pre declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2864: error: Public sym
bol drawable/vod_list_default declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2865: error: Public sym
bol drawable/vol_gauge_01 declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2866: error: Public sym
bol drawable/vol_gauge_bg_01 declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:1007: error: Public sym
bol drawable/volume_btn declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2867: error: Public sym
bol drawable/xtm_h120913 declared here is not defined.
D:\test\UBox_market_OneID_biz_test\res\values\public.xml:2868: error: Public sym
bol drawable/ytn_h121012 declared here is not defined.

What version of the product are you using? On what operating system?
apktool 2.0.0-rc2
java 1.8.0_25
aapt build-tool\19.1.0\aapt(0.2)
win7 64bit

Please provide any additional information below.

Original issue reported on code.google.com by buggy...@gmail.com on 27 Oct 2014 at 7:57

GoogleCodeExporter commented 9 years ago
Do you have an apk? If so, please attach

Original comment by connor.tumbleson on 27 Oct 2014 at 11:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by buggy...@gmail.com on 28 Oct 2014 at 12:02

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by buggy...@gmail.com on 28 Oct 2014 at 12:04

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by buggy...@gmail.com on 28 Oct 2014 at 12:04

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by buggy...@gmail.com on 28 Oct 2014 at 12:05

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by buggy...@gmail.com on 28 Oct 2014 at 12:05

Attachments:

GoogleCodeExporter commented 9 years ago
I was having the same problem until I realized my script was removing all the 
.xml files before compiling... ey

Maybe check if your res\values\public.xml exists in your decompiled source 
folder and verify it's contents?

Original comment by br.ruan....@gmail.com on 6 Nov 2014 at 11:25

GoogleCodeExporter commented 9 years ago
There are multiple bad PNGs in this.

drawable/contents_sharing_bg
drawable/movie_img

Not a bug in Apktool.

Original comment by connor.tumbleson on 7 Nov 2014 at 1:16