Migrating to Android Gradle Plugin 3.0.0

print
For more information about migrating to Android Gradle Plugin 3.0.0 refer to the guide in our documentation: https://goo.gl/AGR95p

Android Plugin version 3.0.0 brings many improvements to build times, especially for multi-module projects. When updating your build files to the newest version however, you might have to watch out for some DSL changes. In this video we show how to deal with errors such as missing flavor dimensions, providing fallbacks for missing build types and flavors in libraries and migrating to a new way of declaring Gradle dependencies.

 

Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

Aapt2 is enabled by default when you use android plugin for gradle 3.0.

This is to

improve incremental resource processing

as stated here.

But if you are facing issues with it, you can switch back to previous version by adding this in gradle.properties

android.enableAapt2=false

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.