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

85 Comments on "Migrating to Android Gradle Plugin 3.0.0"

Notify of
avatar

Itay
Guest
Itay
2 days 19 hours ago

asino KAPPA

Itay
Guest
Itay
2 days 19 hours ago

jebaited

shridhar hariharan
Guest
shridhar hariharan
6 days 19 hours ago

I was using android studio 2.3.3, then i received a dialog to update. Post updation to android studio 3.0.1, i'm facing lots of issues. Couldn't build a single project. Later uninstalled & now i'm back to square one i.e. version 2.3.3. I would love to use 3.0. I tried to clean and build project, but nothing works. The no of errors i received on V 3.0 were 38, including Aapt2 exception.Could you help me to fix it.

Mayank khan singh Dsouza
Guest
Mayank khan singh Dsouza
9 days 17 hours ago

how to fix the AAPT2 error:check your log file error

Sara Sheikh
Guest
Sara Sheikh
17 days 13 hours ago

':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. how i resolve this error kindly help me plz

Sara Sheikh
Guest
Sara Sheikh
14 days 17 hours ago

how kindly explain i hv no experience about it

Jiří Horák
Guest
Jiří Horák
16 days 15 hours ago

maybe check your path if really points to .grandle folder

Spd Shamim
Guest
Spd Shamim
1 month 8 days ago
Error:Unable to find method 'org.gradle.internal.logging.progress.DefaultProgressLoggerFactory.<init>(Lorg/gradle/internal/logging/progress/ProgressListener;Lorg/gradle/internal/time/TimeProvider;)V'.Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java… Read more »
Shilki Biswas
Guest
Shilki Biswas
1 month 13 days ago

sir,I have this problem , I can't solve this issue ..Error: Attribute meta-data#android.support.VERSION@value value=(26.1.0) from AndroidManifest.xml:25:13-35 is also present at AndroidManifest.xml:28:13-35 value=(26.0.1). Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:23:9-25:38 to override.

Top Ten
Guest
Top Ten
1 month 16 days ago

how to fix this

Top Ten
Guest
Top Ten
1 month 16 days ago

how to fix this

Top Ten
Guest
Top Ten
1 month 16 days ago

Error:Could not find com.android.tools.build:gradle:4.3.1.Searched in the following locations: file:/D:/sss/android-studio/gradle/m2repository/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.pom file:/D:/sss/android-studio/gradle/m2repository/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.jar dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.pom dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.jar jcenter.bintray.com/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.pom jcenter.bintray.com/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.jarRequired by: project :<a href="openFile:C:UsersadminAndroidStudioProjectsChemistryXIITooEasy2build.gradle">Open File</a>

Top Ten
Guest
Top Ten
1 month 16 days ago

Error:Could not find com.android.tools.build:gradle:4.3.1.Searched in the following locations: file:/D:/sss/android-studio/gradle/m2repository/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.pom file:/D:/sss/android-studio/gradle/m2repository/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.jar dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.pom dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.jar jcenter.bintray.com/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.pom jcenter.bintray.com/com/android/tools/build/gradle/4.3.1/gradle-4.3.1.jarRequired by: project :<a href="openFile:C:UsersadminAndroidStudioProjectsChemistryXIITooEasy2build.gradle">Open File</a>

1 2 3 7
wpDiscuz