[Solved] Android studio AAPT2 error: Execution failed for task ‘:app:mergeDebugResources’.

Error Message:

Error:Execution failed for task ‘:app:mergeDebugResources’.
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

Performance: cant resolve symbol R

Solution: Add a line of code to the project’s gradle.properties: android.enableAapt2=false and you’re good to go!

 

Similar Posts: