更新到Android 3.1.2的时候,
设置android.enableAapt2=false的时候,提示这个问题
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..
按照这个提示再把设置改为android.enableAapt2=true的时候 ,还是不行
在网上查了很久说是设置为false之后对编译没有影响,我就小心翼翼的run了一下
报了下面的错误
java.util.NoSuchElementException
强制办法可以在setting设置里面
Preferences->Built,Execution,Deployment->Instant Run 取消勾选 Enable Instant Run to hot swap code/resource changes on deploy(default enabled)
Android Studio 3.2 Canary 12 也已发布 ,关于该版本的更新请点此查看。包括默认启用原生 multidex,以及将 AAPT2 迁移到谷歌的 Maven 仓库。https://www.oschina.net/news/95471/android-studio-3-1-2-released
Android studio3.2就会解决这个问题。先这样弄吧...记录一下