I've cloned the volley library to /Users/user/volley
How can I import it as a module to my android studio project, powered with gradle, similar to "Import module" option in IntelliJ Idea.
I've cloned the volley library to /Users/user/volley
How can I import it as a module to my android studio project, powered with gradle, similar to "Import module" option in IntelliJ Idea.
And the new Android Studio is missing File -> Import module.
That is because AndroidStudio has nothing to do with your build anymore. Gradle is the one, who is actually building your application. And if you want to add volley to your project you have to edit build.gradle
script. There are links at the comments or you can use next one as a snippet:
repositories {
maven {
url 'https://github.com/Goddchen/mvn-repo/raw/master/'
}
mavenCentral()
}
dependencies {
compile 'com.android:volley:1.0'
}
After you added those lines, press Sync project with gradle files
and AndroidStudio will import your module.
Now the dependency is like that:
dependencies {
compile 'com.mcxiaoke.volley:library:1.0.+'
}