Android Studio 3.0 migration AAPT2 error

前端 未结 3 1665
终归单人心
终归单人心 2020-12-20 15:58

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

Error:java.util.concurrent.ExecutionE         


        
3条回答
  •  有刺的猬
    2020-12-20 16:46

    this problem occur when there is something wrong in your XMl file

    1:- remove all unnecessary XML files from your code

    2:- Reopen and Check XML files

    If there is Still Problem

    Go to your gradle.properties write the below code

    android.enableAapt2=false 
    

    and then Go to your build.gradle(app) write the below code and Sync your project

    aaptOptions {
            cruncherEnabled = false
        }
    

    Note android.enableAapt2=false is deprecated, and will be removed by the end of 2018, so this doesn't solve the problem, is just a temporary workaround

提交回复
热议问题