Chào mừng bạn đến Diễn Đàn ChơiMobile

Cộng đồng Mobile hàng đầu Việt Nam, Phát triển Android, iOS, Kỹ Thuật Mobile. Đăng ký ngay để tạo chủ để và cùng thảo luận !

Sửa lỗi khi dịch và build file apk

Discussion in 'Thảo Luận - Phát Triển Rom/ Lập trình Mobile' started by tedofu_katozi, Dec 17, 2012.

  1. minhtrinhthanbi

    Newbie

    Sep 3, 2014
    4
    2
    3
    Male
    Tự do
    Tánh Linh, Bình Thuận
    Các bạn giúp mình sửa lỗi này với:
    => Build APK...
    I: Checking whether sources has changed...
    I: Smaling...
    I: Checking whether resources has changed...
    I: Building resources...
    C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\res\values-v19\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.
    C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\res\values-v19\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.
    Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\tools\aapt.exe, p, --min-sdk-version, 14, --target-sdk-version, 14, -F, C:\Users\TRINHM~1\AppData\Local\Temp\APKTOOL6958270207714838279.tmp, -I, C:\Users\Trinh Minh\apktool\framework\1.apk, -S, C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\res, -M, C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\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: [C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\tools\aapt.exe, p, --min-sdk-version, 14, --target-sdk-version, 14, -F, C:\Users\TRINHM~1\AppData\Local\Temp\APKTOOL6958270207714838279.tmp, -I, C:\Users\Trinh Minh\apktool\framework\1.apk, -S, C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\res, -M, C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\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: [C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\tools\aapt.exe, p, --min-sdk-version, 14, --target-sdk-version, 14, -F, C:\Users\TRINHM~1\AppData\Local\Temp\APKTOOL6958270207714838279.tmp, -I, C:\Users\Trinh Minh\apktool\framework\1.apk, -S, C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\res, -M, C:\Users\Trinh Minh\Documents\SuperApkTool_1.0\projects\com.lockscreen.galaxy\code\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
    ... 6 more
    Khi mình xóa 2 dòng trong res\values-v19\styles.xml:5 là:
    <item name="android:searchViewVoiceIcon">true</item>
    <item name="android:searchViewEditQuery">true</item>
    Thì mình đóng gói được, khi cài đặt thì phần Seting nó bị đơ không hoạt động được. Mong các bác giúp mình sửa lỗi này như thế nào. Cám ơn.
     
  2. ntson0902

    Newbie

    Sep 12, 2014
    9
    10
    0
    Male
    Chào mọi người.

    Mình đóng gói lại LGSettings3_2 (rom VDT v6), Khi copy lại vào system/app , reboot máy, thì bị lỗi phần lựa chọn Cỡ chữ (file đính kèm)

    Mọi người xem giúp mình xem đây là lỗi gì và khắc phục thế nào nhé :). Mình dùng apktool. Thông báo lỗi như sau:
    Code:
    C:\apktool>cmd
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\apktool>apktool b LGSettings3_2
    I: Checking whether sources has changed...
    I: Smaling...
    I: Checking whether resources has changed...
    I: Building resources...
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    aapt: warning: string 'font_type_china_select_title' has no default translation in C:\apktool\LGSettings3_2\res; found: de en_AU en_GB en_IE en_US es_US fl it ko tr zh_CN
    aapt: warning: string 'font_type_japan_select_title' has no default translation in C:\apktool\LGSettings3_2\res; found: de en_AU en_GB en_IE en_US es_US fl it ko tr zh_CN
    aapt: warning: string 'please_type_passphrase' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_certificate' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_context_menu_change_password' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_context_menu_change_wapi_certificate' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_context_menu_connect' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_context_menu_forget' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_security_WAPI_CERT' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_security_WAPI_PSK' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_security_short_WAPI_CERT' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_security_short_WAPI_PSK' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_as_cert' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_cancel_button' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_create_subdir' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_delet_subdir' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_install' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_install_button' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_as_dont_exist' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_as_format_is_wrong' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_as_name_is_empty' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_subdir_create_fail' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_subdir_exist' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_subdir_name_is_empty' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_titlebar' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_user_dont_exist' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_user_format_is_wrong' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_mgmt_user_name_is_empty' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_uninstall' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_cert_uninstall_button' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_certification_dont_exist' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    aapt: warning: string 'wifi_wapi_user_cert' has no default translation in C:\apktool\LGSettings3_2\res; found: zh_CN
    I: Building apk file...
    C:\apktool>
     

    Attached Files:

  3. mangemve1511

    Newbie

    May 17, 2013
    18
    6
    0
    Male
    Chào mọi người, em đang build file framework của note 4 dual. Khi build xong thì nó bị lỗi này là gì vậy ạ. Em đã if rồi.

    Lỗi này hiểu nôm na là không tìm thấy file APKTOOL5904516334277474694.tmp trong folder TEMP. Em vào folder này thì không thấy gì cả. Em không hiểu tại sao. Em đã sử dụng quyền administrator để chạy nhưng vẫn không được.

    Mọi người giúp em với ạ. Thanks!
     
  4. clapzen

    Senior Member

    Sep 19, 2013
    493
    729
    0
    bạn thêm ảnh ọt vào đúng không
     
  5. mangemve1511

    Newbie

    May 17, 2013
    18
    6
    0
    Male
    Không ạ, em chỉ việt hóa thôi. Dùng app APK Translation Wizard để việt hóa. Nhưng build lại thì bị lỗi. Em cũng không biết tại sao nửa.
     
  6. boylak21

    Newbie

    Jun 22, 2014
    9
    0
    0
    Male
    Mình decom app chụp hình a better camera thì bị lỗi này là sao vậy anh em?
    Thử dùng Apk Manager V6.1 cũng không được
    [​IMG]
     
  7. clapzen

    Senior Member

    Sep 19, 2013
    493
    729
    0
  8. boylak21

    Newbie

    Jun 22, 2014
    9
    0
    0
    Male
    Mình if cũng vẫn báo lỗi bạn
     
  9. clapzen

    Senior Member

    Sep 19, 2013
    493
    729
    0
  10. boylak21

    Newbie

    Jun 22, 2014
    9
    0
    0
    Male
    thanks. mình gửi cho bạn rồi đó
     
  11. nguyenbao2008

    Newbie

    Jul 23, 2013
    24
    6
    0
    Male
    Hanoi, Vietnam
    Xin lỗi vì đào mộ,nhưng.....e gặp lỗi này mà chưa biết cách xử lý,các bác giúp e với ạ.
    77e3be0d7daf1975d109aa5c3d7cd18f5355af3a.jpg
    Nó báo lỗi cái này phải ko ạ? Giờ sửa như nào cho đúng vậy các bác?
    fb01a11d14de61b0567e170aec7cb1a9b7b3c0ff.jpg
     
  12. huiynhngoclinh000

    Newbie

    Feb 5, 2015
    5
    0
    0
    Male
    Anh ơi em bị lỗi thứ ba á anh à ... Nhưng khi đonga gói lại coppy vào thì bị lỗi mất thanh trạng thái với đen thuiiii màn hình a à
     
  13. huiynhngoclinh000

    Newbie

    Feb 5, 2015
    5
    0
    0
    Male
    Các bác giúp em khi em biên dịch đóng gói lạiđây ạ
     

    Attached Files:

  14. HizZ

    Newbie

    Feb 19, 2015
    2
    0
    0
    Male
    em bị lỗi không đóng được file akp anh ơi up nhanh cho em nha vì không có time trên máy tính ạ. khôngđóngapk.png
     
  15. nhokloz1059

    Newbie

    Dec 19, 2015
    1
    2
    0
    Male
    W: Could not find sources
    aapt: warning: string 'headset_pin_recognition' has no default translation in /sdcard/Playlists/framework-res_src/res; found: zh_CN
    /sdcard/Playlists/framework-res_src/res/layout/keyguard_screen_password_landscape.xml:21: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/keyguard_transport_control').
    /sdcard/Playlists/framework-res_src/res/layout/keyguard_screen_password_portrait.xml:21: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/keyguard_transport_control').
    /sdcard/Playlists/framework-res_src/res/layout/keyguard_screen_tab_unlock.xml:22: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/keyguard_transport_control').
    /sdcard/Playlists/framework-res_src/res/layout/keyguard_screen_tab_unlock_land.xml:16: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/keyguard_transport_control').
    /sdcard/Playlists/framework-res_src/res/layout/keyguard_screen_unlock_landscape.xml:18: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/keyguard_transport_control').
    /sdcard/Playlists/framework-res_src/res/layout/keyguard_screen_unlock_portrait.xml:20: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/keyguard_transport_control').
    Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.release.1382006056, -F, /data/data/per.pqy.apktool/APKTOOL5645683440254249614.tmp, -x, -0, arsc, -S, /sdcard/Playlists/framework-res_src/res, -M, /sdcard/Playlists/framework-res_src/AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
    at brut.androlib.Androlib.buildResources(Androlib.java:374)
    at brut.androlib.Androlib.build(Androlib.java:277)
    at brut.androlib.Androlib.build(Androlib.java:250)
    at brut.apktool.Main.cmdBuild(Main.java:225)
    at brut.apktool.Main.main(Main.java:84)
    Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.release.1382006056, -F, /data/data/per.pqy.apktool/APKTOOL5645683440254249614.tmp, -x, -0, arsc, -S, /sdcard/Playlists/framework-res_src/res, -M, /sdcard/Playlists/framework-res_src/AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:488)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
    ... 5 more
    Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.release.1382006056, -F, /data/data/per.pqy.apktool/APKTOOL5645683440254249614.tmp, -x, -0, arsc, -S, /sdcard/Playlists/framework-res_src/res, -M, /sdcard/Playlists/framework-res_src/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:482)
    ... 6 more
    I: Using Apktool 2.0.0-5d73e2-SNAPSHOT on framework-res_src
    I: Building resources...


    Còn lỗi này là gì các bác. Giúp em với.
     
    2 people like this.
  16. namgsm179

    Newbie

    Nov 26, 2016
    1
    0
    0
    Male
    ae ơi! em bị if file apk bị lỗi như thế này ai giúp e với

    E:\VIỆT HÓA AND CHPLAY\TIẾNG VIỆT\apktool_1.5.1\apktool>apktool if framework.apk
    Error: Unable to access jarfile E:\VI?T HÓA AND CHPLAY\TI?NG VI?T\apktool_1.5.1\
    apktool\\apktool.jar
    E:\VIỆT HÓA AND CHPLAY\TIẾNG VIỆT\apktool_1.5.1\apktool>
     
  17. he0_cavalli

    he0_cavalli Active Member
    Senior Member

    Mar 1, 2013
    117
    44
    28
    sale
    Hải Phòng
    mình bị lỗi ntn
    can't find framework resources for package of id 3 you must install proper framework files, see project website for more info
     

Share This Page