我试图通过将这些行添加到Android Studio中的build.gradle文件来向我的项目添加Maven依赖项,该项目使用Gradle:
repositories {
mavenCentral()
}
dependencies {
compile files('libs/android-support-v4.jar')
compile 'org.roboguice:roboguice:2.0'
}
Run Code Online (Sandbox Code Playgroud)
该项目似乎编译得很好,但是没有办法在我的项目代码中引用Roboguice类.我觉得我错过了一些东西,即Gradle如何下载依赖项以及它将存储在哪里?我该如何修理我的项目?