-1

when building an app with some videos (mp4) inside raw/ directory i get this error:

raw_frenulectomia.mp4.flat: error: failed to read data meta data.
error: failed parsing overlays.

Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt

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

with previous version, everything compiled allright. any idea ?

thanks

1 Answers1

2

Aapt2 is enabled by default when you use android plugin for gradle 3.0.

This is to

improve incremental resource processing

as stated here.

But if you are facing issues with it, you can switch back to previous version by adding this in gradle.properties

android.enableAapt2=false