bạn phải nói rõ là khi đóng hay bung file bị lỗi này chứ,mình chưa gặp lỗi này bao giờ.nhưng hình như là khi đóng gói bạn không xóa file resource trong thư mục keep khi buil.
uments and Settings\Administrator\apktool\framework\2.apk, -S, E:\ATW-beta4-Wi 2\Win32\projects\LGSettings.apk\res, -M, E:\ATW-beta4-Win32\Win32\projects\LGS tings.apk\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.j a:255) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337) at brut.androlib.Androlib.buildResources(Androlib.java:284) at brut.androlib.Androlib.build(Androlib.java:207) at brut.androlib.Androlib.build(Androlib.java:180) at brut.apktool.Main.cmdBuild(Main.java:209) at brut.apktool.Main.main(Main.java:72) Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min- k-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Tem APKTOOL8164977979118058721.tmp, -I, C:\Documents and Settings\Administrator\ap ool\framework\1.apk, -I, C:\Documents and Settings\Administrator\apktool\frame rk\2.apk, -S, E:\ATW-beta4-Win32\Win32\projects\LGSettings.apk\res, -M, E:\ATW eta4-Win32\Win32\projects\LGSettings.apk\AndroidManifest.xml] at brut.util.OS.exec(OS.java:83) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.j a:253) ... 6 more E:\ATW-beta4-Win32\Win32\projects> đóng gói bằng apktool bị lỗi này là sao các bác
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. E:\ATW-beta4-Win32\Win32\projects\apktool>apktool b E:\ATW-beta4-Win32\Win32\pro jects\apktool\framework-res W: Could not find sources I: Checking whether resources has changed... I: Building resources... E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res\res\values-vi-rVN\string s.xml:995: error: Apostrophe not preceded by \ (in Don't) E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res\res\values-vi-rVN\string s.xml:1020: error: Apostrophe not preceded by \ (in Couldn't) E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res\res\values-vi-rVN\string s.xml:1025: error: Apostrophe not preceded by \ (in Couldn't) E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res\res\values-vi-rVN\string s.xml:1160: error: Apostrophe not preceded by \ (in Couldn't) aapt: warning: string 'lte_connection_for_kt' has no default translation in E:\A TW-beta4-Win32\Win32\projects\apktool\framework-res\res; found: ko Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce ption: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-ver sion, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL1977074107216843597.tmp, -x, -S, E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res\res, -M, E:\ATW -beta4-Win32\Win32\projects\apktool\framework-res\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav a:255) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337) at brut.androlib.Androlib.buildResources(Androlib.java:284) at brut.androlib.Androlib.build(Androlib.java:207) at brut.androlib.Androlib.build(Androlib.java:180) at brut.apktool.Main.cmdBuild(Main.java:209) at brut.apktool.Main.main(Main.java:72) Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd k-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ APKTOOL1977074107216843597.tmp, -x, -S, E:\ATW-beta4-Win32\Win32\projects\apktoo l\framework-res\res, -M, E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res \AndroidManifest.xml] at brut.util.OS.exec(OS.java:83) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav a:253) ... 6 more E:\ATW-beta4-Win32\Win32\projects\apktool> đây bác đóng gói lỗi này bác
các bạn hco mình hỏi là sao mình mở file strings.xml thì ngôn ngữ trong ấy có mấy dòng là thế nào nhỉ,file ngôn ngữ ở đâu hết rồi
sao em vh con sky A650S và con Sky A810S.việt hóa và add các file apk vào máy ok hết.Nhưng sao mỗi khi để tiếng việt tắt nguồn đi khởi động lại,hay máy bị hết pin đến khi mở nguồn lên thì máy bị treo và thỉnh thoảng rung lên 1 cái,wipi factory thì lại lên.Nhưng để tiếng anh thì khởi động lại vô tư không làm sao.Lỗi này là do đâu các mod
bạn hỏi thế thì chẳng khác nào mò kim đáy biển. ít ra cũg phải biết cách ly dần để xác định là do file apk nào gây lỗi chứ?
Bác ơi em build file lge-res thì bị lỗi này. Thử đi thử lại vẫn bị. Bác giúp em với D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:30: error: Error: No resource found that matches the given name: attr 'android:flingable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:180: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Widget.EditText.NumberPickerInputText'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:360: error: Error: No resource found that matches the given name: attr 'android:topChevronDrawable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:363: error: Error: No resource found that matches the given name: attr 'android:topChevronDrawable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:366: error: Error: No resource found that matches the given name: attr 'android:topChevronDrawable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:369: error: Error: No resource found that matches the given name: attr 'android:topChevronDrawable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:372: error: Error: No resource found that matches the given name: attr 'android:topChevronDrawable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:375: error: Error: No resource found that matches the given name: attr 'android:topChevronDrawable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:947: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Widget.Holo.ImageButton.NumberPickerDownButton'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:948: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Widget.Holo.EditText.NumberPickerInputText'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:1549: error: Error: No resource found that matches the given name: attr 'android:flingable'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:1751: error: Error: No resource found that matches the given name: attr 'android:numberPickerDownButtonStyle'. D:\Viet hoa\Apk_Manager_5.0.2\other\..\projects\lge-res.apk\res\values\styles.xml:1752: error: Error: No resource found that matches the given name: attr 'android:numberPickerInputTextStyle'.
Bung file apk, thêm value-vi và value-vi-rVN (các string... copy nguyên dạng không chỉnh sửa) đóng gói lại Chuyển sang chế độ tiếng việt xem còn lỗi không, nếu không bị lỗi khi tắt máy là do quá trình dịch thiếu dòng
còn với file framework thì phải là value-vi-rVN không được value-vi đây bác nhìn nhé em vd 1 đoạn nó báo lỗi nè: E:\ATW-beta4-Win32\Win32\projects\apktool\framework-res\res\values-vi-rVN\string s.xml:995: error: Apostrophe not preceded by \ (in Don't) đây cái bôi đỏ đó tìm đến tên file, và line 995 dự lỗi là (phần dịch tự động lỗi cắt bớt câu tiếng anh, đối chiếu lại với bản gốc)