Gradle Troubleshoot Obsolete Configuration Android Studio Version 3.1.2

Rabu, Mei 23, 2018



Android Studio Update 3.1.2

Yesterday I just updated Android Studio to the latest version,
(3.1.2) and find things that need to be configured, one of these need to change is on Gradle.

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

So, check all your gradle build, gradle apps, see below pic.

on example, word 'compile' is obsolete, need changed

change the word 'compile' to 'implementation', and 'testCompile' to 'testImplementation'.



Build your gradle, then done.

Tidak ada komentar:

Diberdayakan oleh Blogger.