Architecture-samples: Configuration 'androidTestCompile' is obsolete

Created on 20 Jun 2018  路  4Comments  路  Source: android/architecture-samples

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

Most helpful comment

@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.

All 4 comments

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.

where the hell is the answer

@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.

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

Was this page helpful?
0 / 5 - 0 ratings