就比如说在导入新项目的啥时候gradle会自己下载些东西。它的下载路径是自己设置的?
就比如说。他的下载路径都被墙了。。我想新弄个路径给他~~怎么设置
在app下面的gradle文件的dependencies里设置
compile 'com.android.support:appcompat-v7:23.4.0'
参考photoview第三方库的设置:
Gradle Dependency
Add this in your root build.gradle file (not your module build.gradle file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Then, add the library to your module build.gradle
dependencies {
compile 'com.github.chrisbanes:PhotoView:{latest.release.here}'
}