I'm just starting to work on an android studio and starting to explore the world of Gradle. So I created a project in Android Studio, opened build.gradle and added the dependencies as shown below:
dependencies { compile 'com.android.support:support-v4:19.0.1' compile 'com.android.support:appcompat-v7:19.0.1' compile 'com.squareup.retrofit:retrofit:1.3.0' compile 'com.jakewharton.timber:timber:2.1.0' }
After that, I noticed a tooltip that appeared on build.gradle that says:
You can configure the Gradle shell to use the distribution with sources. It will provide the IDE Gradle API / DSL documentation "
I ignore this, and I find neither wood nor modifications in external libraries after I try to build the project. Obviously, I missed something. I thought that after declaring dependencies and creating a click, specific libraries would be imported automatically, but yes, I was wrong.
So, I agree and apply the hint that appeared on build.gradle , and then the project was updated, after which all the dependencies were available in the "External Libraries".
So the question is:
- How to ensure that all dependencies are present after the declaration in
build.gradle ?
I read that I can do this using the GUI by clicking on the import modules, but I want to find out if there are other ways.
source share