java.util.concurrent.ExecutionException 'android.enableAapt2' is deprecated and should not be use

话说每次studio版本更新一次,都要捣鼓一天处理各种错误,我们很感恩google一直在快速更新,真是忙坏了那群大爷大妈。这次更新到了3.1也不例外。先说说这个错:

如果你的配置是这样的:


并且有如下的错

Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 

The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.

It will be removed at the end of 2018..


我是找了一圈了,没有找到解决办法,我用的笨方法,把Gradle version 改为4.1  Android Plugin Version改为3.0.1(classpath中的)很多网页说android.enableAapt2=true 改为true或false ,我试了没有啥用,希望帮到你

猜你喜欢

转载自blog.csdn.net/qq_35599978/article/details/80027181