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 ,我试了没有啥用,希望帮到你

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值