error: failed linking references
2019-05-17 本文已影响0人
王魔王
在使用AndroidStudio开发项目时,有的时候编译阶段失败,而失败的异常信息类似下面的信息,或者是项目可以成功编译,但是每次运行的时候就报如下异常,导致项目启动失败。
如果你遇上了这个问题,那么请检查你的资源文件吧。记住,一定要耐心检查。
Information:Gradle tasks [:app:assembleDebug]
Error:failed linking references.
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:org.gradle.tooling.BuildException: Failed to execute aapt
Error:com.android.ide.common.process.ProcessException: Failed to execute aapt
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
Information:BUILD FAILED in 1s
Information:9 errors
Information:0 warnings
Information:See complete output in console