Android Studio 3.0 AAPT2 migration error

After transferring my existing project to Android Studio 3.0 it does not compile. The following is the log data:

 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 
+5
source share
2 answers

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

 android.enableAapt2=false 

enter image description here

+10
source

Is your username in cyrillic operating system? If so, you need to change the .gradle resource folder in the settings to a path that does not contain Cyrillic characters. In ->Settings-> Build, Execution -> Gradle change the Service directory path to "C: /Users/Public/.gradle"

+2
source

Source: https://habr.com/ru/post/1273389/


All Articles