How can I solve this problem, when I am building it, it is showing me the same problem- java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
I am using classpath 'com.android.tools.build:gradle:3.1.0'
What should be the exact solution. Please let me know as soon as possible.
There could be a problem in your res folders it could be an image that was not well converted so the solution to this is to update your gradle plugin which will highlight the actual problem
This line classpath 'com.android.tools.build:gradle:3.2.0-alpha18'
Edit your build.gradle file:
buildscript { repositories { google() // important! jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.0-alpha18' } } allprojects { repositories { google() // important! jcenter() } }
NOTE This might require to update your gradle to 4.6
I had the same issue. Apparently this line had to be at the top of the main XML file and was 2 or 3 lines below.
<?xml version="1.0" encoding="utf-8"?>
Cut and pasted to top of XML file and build succeeded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With