Android Studio 3.0迁移AAPT2错误

Android Studio 3.0迁移AAPT2错误

问题描述:

将我现有的项目迁移到 Android Studio 3.0 后,它不会编译。以下是日志详细信息:

After migrating my existing project to Android Studio 3.0, it is not compiling. Below are the log details:

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 ':app:processDebugResources'.
Failed to execute aapt
Information:BUILD FAILED in 27s
Information:11 errors
Information:0 warnings


转到您的 gradle.properties 编写下面的代码并同步您的项目

Go to your gradle.properties write the below code and Sync your project

android.enableAapt2=false