android / architecture-samples

A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
Apache License 2.0
44.32k stars 11.62k forks source link

Configuration 'androidTestCompile' is obsolete #562

Open bmomani1 opened 6 years ago

bmomani1 commented 6 years ago

I got this error When I run todoapp Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

florina-muntenescu commented 6 years ago

Some of the branches have already been updated by the community. Feel free to create PRs that update the build.gradle file for other branches.

Emyboy commented 6 years ago

where the hell is the answer

CoolMind commented 5 years ago

@Emyboy, see https://makecodesimpleandeasy.blogspot.com/2018/07/configuration-androidtestcompile-is.html.

In app/build.gradle do following steps, change:

1) compile to implementation, 2) testCompile to testImplementation, 3) androidTestCompile to androidTestImplementation.

ryanzhou7 commented 5 years ago

@Emyboy Please see my pull request https://github.com/googlesamples/android-architecture/pull/619 (todo-mvp-dagger branch)