綁定帳號登入

Android 台灣中文網

[求助] 無法編譯【附ApkTool_tw.log】

[複製連結] 查看: 3545|回覆: 12|好評: 0
trance0925 | 收聽TA | 顯示全部樓層 |閱讀模式
發表於 2012-6-21 17:26
50碎鑽
本帖最後由 r35471853 於 2012-6-21 17:27 編輯

請各位高手幫我看看是哪邊有問題


這次的檔案我是去修改

C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res\values-zh-rCN\strings.xml


修改方式是直接將簡體轉換成繁體之後直接存檔



但是在編譯的時候卻出錯,看起來好像是系統上面的問題

  1. 載入apktool.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\apktool.jar
  2. 載入aapt.exe的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\aapt.exe
  3. 載入signapk.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\signapk.jar
  4. 載入testkey.pk8的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\testkey.pk8
  5. 載入testkey.x509.pem的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\testkey.x509.pem
  6. 載入baksmali.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\baksmali.jar
  7. 載入smali.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\smali.jar
  8. 載入dex2jar.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\dex2jar.jar
  9. 載入asm-debug-all.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\asm-debug-all.jar
  10. 載入commons-io.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\commons-io.jar
  11. 載入slf4j-simple.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\slf4j-simple.jar
  12. 載入slf4j-api.jar的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\slf4j-api.jar
  13. 載入jad.exe的路徑:C:\Users\user\Desktop\apk.tw_ApktoolGui v2.0 Final\Bin\jad.exe
  14. =====================================================
  15. =====================繁體化By小語====================
  16. =====================================================
  17. 開始反編輯...
  18. I: Baksmaling...

  19. I: Loading resource table...

  20. I: Loaded.

  21. I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk

  22. I: Loaded.

  23. I: Decoding file-resources...

  24. I: Decoding values*/* XMLs...

  25. I: Done.

  26. I: Copying assets and libs...

  27. C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604.apk 反編輯成功!
  28. 開始編輯...
  29. I: Checking whether sources has changed...

  30. I: Smaling...

  31. I: Checking whether resources has changed...

  32. I: Building resources...

  33. aapt: warning: string 'perm_all' has no default translation in C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res; found: hu

  34. aapt: warning: string 'settings_root_settings' has no default translation in C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res; found: es hi hu ko

  35. aapt: warning: string 'tab_bluetooth' has no default translation in C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res; found: sk

  36. C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res\values-zh-rCN\strings.xml:2: error: Error parsing XML: XML or text declaration not at start of entity

  37. Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\user\AppData\Local\Temp\APKTOOL8065686828282537792.tmp, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res, -M, C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\AndroidManifest.xml]

  38.         at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)

  39.         at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)

  40.         at brut.androlib.Androlib.buildResources(Androlib.java:248)

  41.         at brut.androlib.Androlib.build(Androlib.java:171)

  42.         at brut.androlib.Androlib.build(Androlib.java:154)

  43.         at brut.apktool.Main.cmdBuild(Main.java:182)

  44.         at brut.apktool.Main.main(Main.java:67)

  45. Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\user\AppData\Local\Temp\APKTOOL8065686828282537792.tmp, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\res, -M, C:\Users\user\Desktop\MiFileExplorer_v2.3.7.32_light_build_2012051604\AndroidManifest.xml]

  46.         at brut.util.OS.exec(OS.java:83)

  47.         at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

  48.         ... 6 more

  49. MiFileExplorer_v2.3.7.32_light_build_2012051604.apk 編輯失敗!
複製代碼

最佳答案

查看完整內容

上面的空白把她刪除就能正常 這段要在第一行= ="你跑到地2行了
「用Android 就來APK.TW」,快來加入粉絲吧!
Android 台灣中文網(APK.TW)
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

cd45091 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 17:26
本帖最後由 cd45091 於 2012-6-21 19:27 編輯
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3.     <string name="config_username">用戶名:</string>
複製代碼
上面的空白把她刪除就能正常


<?xml version="1.0" encoding="utf-8"?>
這段要在第一行= ="你跑到地2行了

評分

參與人數 1幫助 +1 收起 理由
柯博文 + 1 老衲來幫這篇文章開光

查看全部評分

用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

cd45091 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:02
  1. 載入apktool.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\apktool.jar
  2. 載入aapt.exe的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\aapt.exe
  3. 載入signapk.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\signapk.jar
  4. 載入testkey.pk8的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\testkey.pk8
  5. 載入testkey.x509.pem的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\testkey.x509.pem
  6. 載入baksmali.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\baksmali.jar
  7. 載入smali.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\smali.jar
  8. 載入dex2jar.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\dex2jar.jar
  9. 載入asm-debug-all.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\asm-debug-all.jar
  10. 載入commons-io.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\commons-io.jar
  11. 載入slf4j-simple.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\slf4j-simple.jar
  12. 載入slf4j-api.jar的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\slf4j-api.jar
  13. 載入jad.exe的路徑:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ApkToolGui\jad.exe
  14. =====================================================
  15. =====================繁體化By小語====================
  16. =====================================================
  17. 開始反編輯...
  18. I: Baksmaling...

  19. I: Loading resource table...

  20. I: Loaded.

  21. I: Loading resource table from file: C:\Documents and Settings\Administrator\apktool\framework\1.apk

  22. W: Config flags size > 36. Exceeding bytes: 0x1000000.

  23. W: Invalid config flags detected: dimen-hdpi-ERR0

  24. W: Config flags size > 36. Exceeding bytes: 0x2000000.

  25. W: Invalid config flags detected: dimen-hdpi-ERR1

  26. W: Config flags size > 36. Exceeding bytes: 0x4000000.

  27. W: Invalid config flags detected: dimen-hdpi-ERR2

  28. W: Config flags size > 36. Exceeding bytes: 0x5000000.

  29. W: Invalid config flags detected: dimen-hdpi-ERR3

  30. W: Config flags size > 36. Exceeding bytes: 0x1000000.

  31. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4

  32. W: Config flags size > 36. Exceeding bytes: 0x2000000.

  33. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5

  34. W: Config flags size > 36. Exceeding bytes: 0x4000000.

  35. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6

  36. W: Config flags size > 36. Exceeding bytes: 0x5000000.

  37. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7

  38. W: Config flags size > 36. Exceeding bytes: 0x1000000.

  39. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8

  40. W: Config flags size > 36. Exceeding bytes: 0x2000000.

  41. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9

  42. W: Config flags size > 36. Exceeding bytes: 0x4000000.

  43. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10

  44. W: Config flags size > 36. Exceeding bytes: 0x5000000.

  45. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11

  46. I: Loaded.

  47. I: Decoding file-resources...

  48. I: Decoding values*/* XMLs...

  49. I: Done.

  50. I: Copying assets and libs...

  51. C:\Documents and Settings\Administrator\桌面\MiFileExplorer_v2.3.7.32_light_build_2012051604.apk 反編輯成功!
  52. 開始編輯...
  53. I: Checking whether sources has changed...

  54. I: Smaling...

  55. I: Checking whether resources has changed...

  56. I: Building resources...

  57. aapt: warning: string 'perm_all' has no default translation in C:\Documents and Settings\Administrator\桌面\MiFileExplorer_v2.3.7.32_light_build_2012051604\res; found: hu

  58. aapt: warning: string 'settings_root_settings' has no default translation in C:\Documents and Settings\Administrator\桌面\MiFileExplorer_v2.3.7.32_light_build_2012051604\res; found: es hi hu ko

  59. aapt: warning: string 'tab_bluetooth' has no default translation in C:\Documents and Settings\Administrator\桌面\MiFileExplorer_v2.3.7.32_light_build_2012051604\res; found: sk

  60. I: Building apk file...

  61. 開始簽名...
  62. MiFileExplorer_v2.3.7.32_light_build_2012051604.apk 簽名成功!
複製代碼
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

cd45091 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:05
可否附上您修改的檔案,方便測試?
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

 樓主| trance0925 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:08
cd45091 發表於 2012-6-21 19:05
可否附上您修改的檔案,方便測試?

MIUI file.rar (639.25 KB, 下載次數: 9)
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

cd45091 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:17
r35471853 發表於 2012-6-21 19:08
我直接壓縮,解壓縮之後就可以看到

阿哩,我在公司 工具不齊全,等我一下我抓一下
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

 樓主| trance0925 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:22
cd45091 發表於 2012-6-21 19:17
阿哩,我在公司 工具不齊全,等我一下我抓一下

感謝你的熱心幫忙,期待
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

 樓主| trance0925 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:44
cd45091 發表於 2012-6-21 19:26
上面的空白把她刪除就能正常

可以編譯,但是問題來了


我剛剛編譯完成之後出現兩個檔案

一個未簽名,一個已簽名


我將簽名的安裝到手機裡面,可以安裝

但是打開的時候卻出現停止的訊息

.................


我是直接把文字貼上到這個網站

轉換完之後直接在蓋回去

>"<

越來越悶
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

cd45091 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 19:51
本帖最後由 cd45091 於 2012-6-21 19:53 編輯
r35471853 發表於 2012-6-21 19:44
可以編譯,但是問題來了


過程是正確的,問題可能出在程式編輯後無法正常或是他程式本身出問題
建議你可以測試兩個步驟
1.就是完全沒動過的原檔,看有沒有辦法正常運行
2.不改任何東西,直接編輯打包,安裝完看有沒有辦法正常運行
因為我在公司也沒工具幫你測試..

PS謝謝你的50元^^
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

 樓主| trance0925 | 收聽TA | 顯示全部樓層
發表於 2012-6-21 20:01
cd45091 發表於 2012-6-21 19:51
過程是正確的,問題可能出在程式編輯後無法正常或是他程式本身出問題
建議你可以測試兩個步驟
1.就是完全 ...

我把作業系統換成XP看看再來試試看- .-


遇到只能反編譯去繁化的東西目前真的沒轍~"~

JDK & JRE 環境參數都去用了

好悶


換XP看看會不會OK
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則