.... com.android.tools.aapt2.Aapt2Exception: .AAPT2 error: check logs for details

Error: execution completed for task ': app: mergeDebugResources'.

Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check the logs for details

+5
source share
2 answers

This will happen if your one of the paths contains a non-ASCII character or `` (space). Try changing the path to the service directory: C:/Users/Public/.gradle in Settings->Build, Execution, Deployment->Gradle

+1
source

I solved this problem by following this process

Click on Gradle on the right side of Gradle-> Project Name-> Application β†’ Tasks-> build-> assemblyDebug

clicking on the assembly Debug will show you the line where the problem is. in my case i have a problem in my xml file

+1
source

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


All Articles