我在Ubuntu中将
Android Studio更新为3.0.当我加载项目时,它无法构建,并且当在Android Studio的早期版本(v2.3)中构建时,同一项目没有问题.错误说,
Error:found unexpected optical bounds (red pixel) on top border at x=14.
Error:.
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error
解决方法
更新到Android Studio 3.0后,我也遇到了同样的问题.我通过设置android.enableAapt2 = false解决了这个问题
Improved incremental resource processing using AAPT2,which is enabled by default. If you are experiencing issues while using AAPT2,you can disable it by setting android.enableAapt2=false in your gradle.properties file and restarting the Gradle daemon by running ./gradlew –stop from the command line.
更多关于它在here