android-sdk-windows\build-tools\26.0.0\aapt.exe'' finished with non-zero exit value 1
android-sdk-windows\build-tools\26.0.0\aapt.exe’’ finished with non-zero exit value 1
沒改動程式碼,專案編譯的時候報了這個錯誤
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘D:\android-sdk-windows\build-tools\26.0.0\aapt.exe’’ finished with non-zero exit value 1
搞了半天不曉得原因在哪,最後看看修改記錄,整個專案就添加了幾張png圖片,難道是圖片的問題?把圖片去掉,然後編譯就通過了,還真是圖片的問題:最後測試了幾下,原來在ios裡的命名方式例如:[email protected]、或者純數字命名的圖片是不可以的,需要遵守一定的命名方式。
Android中png命名大致的規範:
小寫字母,數字,下劃線組成;必須是字母開頭,而且每個下劃線後面第一個字元必須是字母; 字母數字不能混搭(如side2btn)
例:
正確: a_b_btn1; aaa_bbb_btn_1; btn1_a_b; 錯誤: Aaa_b_btn; a_b_1btn; a_b_b1tn; a_b-btn;
相關推薦
Android編譯時出現Process 'command 'build-tools\27.0.3\aapt.exe'' finished with non-zero exit value 1報錯
首先說下自己的解決方案: 1,電腦當時執行的記憶體不夠,導致了這個問題 2,這個才是重點 AndroidManifest.xml資原始檔中引用有錯誤(搜狗渠道的資源配置引用了愛遊戲渠道的資源配置)刪除錯誤的資源配置就可以了,資源報錯的方式是通過以下一篇部落格
Process 'command 'F:\androidSDK\build-tools\27.0.3\aapt.exe'' finished with non-zero exit value 1
Process ‘command ‘F:\androidSDK\build-tools\27.0.3\aapt.exe’’ finished with non-zero exit value 1 閒來無
android-sdk-windows\build-tools\26.0.0\aapt.exe'' finished with non-zero exit value 1
android-sdk-windows\build-tools\26.0.0\aapt.exe’’ finished with non-zero exit value 1 沒改動程式碼,專案編譯的時候報了這個錯誤 com.android.ide.common.p
Android Studio解決 類似 sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1 這種問題
Error:Execution failed for task ':vjfen_app:processDebugResources'. > com.Android.ide.common.process.ProcessException: org.gradle.proc
安卓報Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1
專案做了一個暑假,今晚要完工了,換了一張圖片,結果報了這個錯Process 'command 'D:\SDK\AS\sdk\build-tools\23.0.0\aapt.exe'' finished with non
Android Studio 編譯提示 aapt.exe finished with non-zero exit value 1的解決方法
今天編譯的一箇舊專案,該專案是用的Gradle build tools 版本是2.2.0,我當前用的版本是3.2.0,。開啟工程正常編譯後可以安裝APK執行,改動了一些程式碼後,重新編譯提示出現以下錯誤: aapt.exe finished with non-z
Android Studio編譯大工程報錯:java.exe'' finished with non-zero exit value 1
困擾了三天的Android Studio編譯報錯終於解決了! 三天嘗試了各種不同的方案針對各個不同的方方面面,然而真相只有一個! 原問題情景:由於專案工程特別大,在編譯一段後就會報下面這個錯誤: Error:Execution failed for t
Failed to execute aapt:Process 'command '/build-tools/28.0.2/aapt'' finished with non-zero exit value 1
Caused by: com.android.ide.common.process.ProcessException: Error while executing process /Users/houzhibin/Library/Android/sdk/build-tools/28.0.2/aapt with
C:\Users\zhen\AppData\Local\Android\Sdk\platform-tools\adb'' finished with non-zero exit value 1
Android studio編譯時報錯 Process 'command 'C:\Users\zhen\AppData\Local\Android\Sdk\platform-tools\adb'' finished with non-zero exit value 1 只需要在setting
Android Studio各種坑爹之:finished with non-zero exit value 1和Return code 1 for dex process.
對於finished with non-zero exit value 1這樣的錯誤,可以如下解決: android { compileSdkVersion 25 buildToolsVersion "25.0.0" //新增如下程式碼即可解決 dexOption
Android Studio Java\jdk1.7.0_45\bin\java.exe'' finished with non-zero exit value 3
使用Android Studio在給專案中匯入庫的時候會報 Error:Execution failed for task ':jinFu:dexAppchinaDebug'.> com.and
開啟安卓專案報錯Failed to load E:\android\android-sdk-windows\build-tools\26.0.2\lib\dx.ja Unable to build:
當我們將安卓環境成功搭建號之後,新建下一個專案準備執行時,突然發現,eclipse報錯: Failed to load (%ANDROID_SDK__HOME%)\build-tools\26.0.0
NDK報錯:Process 'command 'D:\SDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2
由於換了筆記本,在新筆記本中編譯NDK時,報瞭如下錯誤: Process 'command 'D:\SDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2 膝上型電腦是新下的17版NDK,在網上查閱資料,並驗證,換
android整合環信sdk出現app:transformClassesWithDexForDebug.” ---finished with non-zero exit value 2解決方法
android整合環信sdk出現app:transformClassesWithDexForDebug.” —finished with non-zero exit value 2解決方法 通常是架包衝突問題。 首先找到Gradle Scripts 然後找到 解決: impleme
NDK報錯:Process 'command 'D:\SDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2
由於換了筆記本,在新筆記本中編譯NDK時,報瞭如下錯誤: Process 'command 'D:\SDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2 膝上型電腦是新下的17版NDK,在網上
Android Studio BUILD FAILED finished with non-zero exit value
Android Studio build failed Android studio gradle 編譯失敗 錯誤提示:finished with non-zero exit value 1finis
Process 'command 'E:\AndroidSDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2問題解決
我在網上收了一些教程,說是ndk版本的問題,我的版本是18的,我下載了一個16的版本放到ndk-bundle目錄下就好了,希望對你有幫助,下面是下載16版本的ndk的百度網盤地址。 連結:https
【Android】finished with non-zero exit value 2
異常提示 產生原因 解決辦法 注意 參考連結 異常提示 Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex fil
react-native run-android時遇到 app dexDebug……finished with non-zero exit value 2
可以試試進入RN專案的根目錄,在進入android目錄,windows執行程式碼:gradlew clean。 蘋果的執行:./gradlew clean 完成後再試試react-native ru
Android專案執行時出現 Failed to load F:\eclipse\android-sdk-windows\build-tools\28.0.0-preview\lib\dx.jar
執行時出現錯誤: Failed to load F:\eclipse\android-sdk-windows\build-tools\28.0.0-preview\lib\dx.jar Unknown error: Unabl