AAPT2 error: check logs for details 2018

0

How about again friends, I was trying to execute a project until I suddenly got the AAPT2 error. I have read that to disappear you have to solve the errors from the last. And these are the errors that appear to me.

I do not mark error in any file, only in the "MainActivity.java" that is normal.

But I do not know what will be causing conflict, I also see that it tells me that the "values" file is with errors.

But I do not see that I mark error, that's why I decided to share it to see what is happening.

Postscript, I also share my file "build.gradle (Module.app)"

    
asked by Gian Franco Alexis Poma Vidal 16.08.2018 в 09:16
source

1 answer

0

look at the AAPT2 is a gradle optimization complement that is not compatible with the Robolectric framework and when some error is generated, they recommend disabling it, for that you place android.enableAapt2=false in your file gradle.properties I leave the sources where I got the information

link link

also mention that the AAPT2 is more strict with the file AndroidManifest.xml I leave the source

Error in debug \ AndroidManifest.xml ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error

    
answered by 16.08.2018 в 14:37