-1

I am new at Android programming. Can anybody tell me how the difference in the use of dependencies between the classpath and the implementation in Android Studio. In tutorial at Google using dependencies with implementation, but in my Android Studio is using classpath?

nuhkoca
  • 1,777
  • 4
  • 20
  • 44
  • [docs](https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html) – a_local_nobody Mar 01 '21 at 13:32
  • and [related](https://stackoverflow.com/questions/34286407/gradle-what-is-the-difference-between-classpath-and-compile-dependencies) – a_local_nobody Mar 01 '21 at 13:33
  • 2
    Does this answer your question? [Gradle: What is the difference between classpath and compile dependencies?](https://stackoverflow.com/questions/34286407/gradle-what-is-the-difference-between-classpath-and-compile-dependencies) – foal Mar 01 '21 at 17:31

1 Answers1

0

If buildscript itself needs something to run, use classpath.

If your project needs something to run, use implementation.

The buildscript{} block is for the build.gradle itself.

And here is the Documentation

Usama Altaf
  • 90
  • 1
  • 4
  • 23