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?
- docsa_local_nobody– a_local_nobody2021-03-01 13:32:40 +00:00Commented Mar 1, 2021 at 13:32
- and relateda_local_nobody– a_local_nobody2021-03-01 13:33:03 +00:00Commented Mar 1, 2021 at 13:33
- 2Does this answer your question? Gradle: What is the difference between classpath and compile dependencies?foal– foal2021-03-01 17:31:07 +00:00Commented Mar 1, 2021 at 17:31
Add a comment |
1 Answer
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