java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Failed to execute aapt
問題描述
大約1個月前的專案,近期升級過一次Plugin Version,今天再次開啟這個專案的時候出現瞭如下問題
預設的報錯是:
Process 'command 'C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\27.0.0\aapt.exe'' finished with non-zero exit value 1
點到下面更為具體的報錯資訊,是這樣的
左邊欄點選子目錄
紅紅火火一片......
問題分析
我們看一下其中的一個報錯資訊
框出來的這句話的意思就是,執行aapt失敗
aapt 的全程是: Android Asset Packaging Tool
顯然,這是Android資源的打包工具
我們工程的資原始檔(也就是res目錄下的檔案),都是通過aapt打包成R.java類的(也就是資源索引表)
顯然,是我們的資原始檔出問題
進一步驗證一下,我們開啟一個之前已經寫好的Activity
你會發現,R類是報錯的,或者說R類根本沒有生成
所以你後面所有用到R類的地方全部都會失效,進而報錯
像這種問題,一般來說兩種方法:
第一,去你的資原始檔裡找問題,是不是你的資原始檔用了jpg格式的圖片,或者是出現了中文路徑
第二,去你的build.gradle裡找,修改一些配置上的問題
解決問題
我們跟蹤一下專案的資原始檔Manifest.xml
相關推薦
java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Failed to execute aapt
問題描述 大約1個月前的專案,近期升級過一次Plugin Version,今天再次開啟這個專案的時候出現瞭如下問題 預設的報錯是: Process 'command 'C:\Users\Administrator\AppData\Local\Android\Sdk\
Android Studio專案打包:常見錯誤3:com.android.ide.common.process.ProcessException: Failed to execute aapt
Error while generating dependencies split APK com.android.ide.common.process.ProcessException: Failed to execute aapt Caused by: java.util.NoSuchE
Android開發:建立專案後報錯,com.android.ide.common.process.ProcessException: Failed to execute aapt
情景:建立專案後報錯 com.android.ide.common.process.ProcessException:Failed to execute aapt 原因:在build.gradle檔案中, compileSdkVersion 和buildToolsVer
React Native報錯com.android.ide.common.process.ProcessException: Failed to execute aapt.
報錯環境:執行命令 react-native run-android時,報錯:Error: "C" is not a valid file-based resource name character: File-based resource names must contai
Android Studio出現java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException的總結和解決方法
logo ide roc for deb execution 所有 不同類 util 1. Error:Execution failed for task ‘mergeDebugAndroidTestResources‘. > Error: java.util.c
Android解決Java.util.concurrent.ExecutionException: com.Android.ide.common.process.ProcessException:異常
錯誤: Error:Execution failed for task ':app:mergeDebugResources'. > Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.P
Caused by: com.android.ide.common.process.ProcessException: Error while executing process aapt.exe
build時出現問題: Caused by: com.android.ide.common.process.ProcessException: Error while executing process E:\AndroidSDK\build-tools\25.0.3\aapt.exe wi
androidStudio com.android.ide.common.process.ProcessException解決方法
第一種情況 Error:(283) Attribute "color" has already been defined Error:Execution failed for task ':myg
java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal er
解決 : java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.
關於 Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.P
原 關於 Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.P
Error: Java.lang.RuntimeException: java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
tel -- 版本 erro cit nio bsp ip地址 cto 我在用sqoop把數據從mysql導入到hive的過程中遇到報錯Error: Java.lang.RuntimeException: java.lang.RuntimeException: com.my
Druid異常處理:java.lang.RuntimeException: No buckets?? seems there is no data to index.
2018-09-16T15:10:53,695 ERROR [task-runner-0-priority-0] io.druid.indexing.overlord.ThreadPoolTaskRunner - Exception while running task[HadoopIndexT
異常處理java.lang.RuntimeException: No buckets?? seems there is no data to index.
2018-09-16T15:10:53,695 ERROR [task-runner-0-priority-0] io.druid.indexing.overlord.ThreadPoolTaskRunner - Exception while running task[Ha
配置AOP時報錯:java.lang.ClassCastException: com.sun.proxy.$Proxy2 cannot be cast to
報錯: Exception in thread "main" java.lang.ClassCastException: com.sun.proxy.$Proxy2 cannot be cast to ******** 看報錯資訊,顯示的是動態代理生成的類無法轉
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
Android gradle error com.android.build.api.transform.transformexception java.lang.runtimeexception
com.android.build.api.transform.transformexception java.lang.runtimeexceptionslove:add:dexOptions {
Android開發中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}
net 控件 view etc spi pos rst ack data Android開發中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullP
Android Studio 導入應用時報錯 Error:java.lang.RuntimeException: Some file crunching failed, see logs for details
gradle new ... pan run top adl som als 在app文件夾的build.gradle裏加上 android { ...... aaptOptions.cruncherEnabled = false aaptOptions.us
【Android】java.lang.RuntimeException: java.lang.Throwable: A WebView method was called on thread 'JavaBridge'.
ole lang exp blog web ref overflow post exce 一、問題 Java調用JS事件出現 java.lang.RuntimeException: java.lang.Throwable: A WebView method was call
出現java.lang.Exception: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.web.visit.main.ClickVist$VisitMapper.<init>()的問題
圖片 init mapr img 內部類 div ava 執行 沒有 執行mapreduce報錯java.lang.Exception: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.