Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

Error:Execution failed for task ':app:mergeDebugResources'.

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

like image 755
Ajayacharya Avatar asked Nov 07 '17 15:11

Ajayacharya


People also ask

What is AAPT2?

AAPT2 (Android Asset Packaging Tool) is a build tool that Android Studio and Android Gradle Plugin use to compile and package your app's resources. AAPT2 parses, indexes, and compiles the resources into a binary format that is optimized for the Android platform. Android Gradle Plugin 3.0.


1 Answers

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

like image 138
Sefa Sönmez Avatar answered Oct 25 '22 09:10

Sefa Sönmez