AndroidStudio常見錯誤收集
阿新 • • 發佈:2019-01-08
1、Error:Finish can only be called once.
(Gradle版本問題,可檢視ProjectStructure中專案的Gradle版本和Setting中Gradle版本修改為一致的)。
2、 Error:java.util.concurrent.ExecutionException:
java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException:
com.android.tools.aapt2.Aapt2Exception:
AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception:
AAPT2 error: check logs for details
Error:Execution failed for task ‘:baiduWalletRefactorLib:processDebugAndroidTestResources’.
Failed to execute aapt
在gradle 3.0.0中AAPT2是預設開啟的,在專案的gradle.properties中新增android.enableAapt2=false即可