Published on October 25, 2017 by Android Developers

For more information about migrating to Android Gradle Plugin 3.0.0 refer to the guide in our documentation: 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.

Subscribe to the Android Developers channel here: goo.gl/vLYDU

#tools #gradle

Leave a Reply

113 Comments on "Migrating to Android Gradle Plugin 3.0.0"

Notify of
avatar

Angelica Perduta
Guest
Angelica Perduta
17 days 17 hours ago

When I started as a junior programmer back in the 1970's we were taught KISS: Keep it simple… stupid!I see why now: The convoluted complexity of all this is going to deter new programmers and independent initiatives…

ARTHUR CESAR
Guest
ARTHUR CESAR
1 month 8 days ago

Bugs, Bugs e mais Bugs

ARTHUR CESAR
Guest
ARTHUR CESAR
1 month 8 days ago

Android studio 2018 cheio de bugs defeitos

Richard Shin
Guest
Richard Shin
1 month 10 days ago

A lot of negativity here in the comments… While I must admit that it does take some time to grok the general workings of gradle, flavor dimensions and improved build times on multi-module projects are important. The changes that were mentioned help create a more versatile development environment for non-trivial projects, both in terms of size and complexity. Might I suggest reading through the documentation to help in migrations (developer.android.com/studio/build/gradle-plugin-3-0-0-migration)?

MrF4lk
Guest
MrF4lk
1 month 16 days ago

I've done everything to resolve this error, but I have not yet succeeded …Could not find com.android.tools.build:gradle:2.2.2.Searched in the following locations: repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.jarRequired by: project :CordovaLib

Hasar Koko
Guest
Hasar Koko
1 month 20 days ago

Compilesdkversion 28Minsdkversion 16Targetsdkversion 28It works

Narayan Phophalia
Guest
Narayan Phophalia
1 month 26 days ago

aapt2 error: check logs for detailsjava.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for detailsi tried android.enableAapt2=0but after this i get this error – 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..Process 'command 'E:AndroidstudioinstalleddirectorydonotmodifyAndroidSDKinstallationloctionbuild-tools27.0.3aapt.exe'' finished with non-zero exit value 1any fix of this error android studio version 3.1,windows 10 32 bit

QUOTES KINGDOM
Guest
QUOTES KINGDOM
1 month 30 days ago

Is $25 registration for Android developer for a lifetime?

META T
Guest
META T
1 month 30 days ago

despite the overall negative feedback, i got my problem fixed. thanks

Mateus Dias
Guest
Mateus Dias
3 months 3 days ago

Google should learn from the python people. Every day that passes is more ultra annoying to do something for Android. Definitely a disgrace! Every time they mess up posts and more posts in the stackoverflow of people getting bored to solve problems with Gradle!

1 2 3 9
wpDiscuz