Build unsuccessful after updating android studio to 3.0. Error:Found unexpected optical bounds (red pixel)

后端 未结 2 1158
青春惊慌失措
青春惊慌失措 2021-02-09 03:14

I updated my Android Studio to 3.0 in Ubuntu. When I loaded a project it fails to build and the same project has no issues when it was built in previous version(v2.3) of Android

2条回答
  •  無奈伤痛
    2021-02-09 03:49

    After updating to Android Studio 3.0 I was also facing the same issue. I solved the problem by setting 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.

    More about it in here

提交回复
热议问题