在下面的后面加上后面的代码即可!
dependencies {
compile fileTree(
include: [
'*.jar'],
dir:
'libs')
testCompile
'junit:junit:4.12'
compile
'com.android.support:appcompat-v7:25.0.0'
compile files(
'libs/universal-image-loader-1.9.3.jar')
compile files(
'libs/nineoldandroids-2.4.0.jar')
compile
'com.mcxiaoke.volley:library:1.0.19'
compile
'com.google.code.gson:gson:2.2.4'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath
'com.android.tools.build:gradle:2.3.0'//修改自己当前as 中所有的gradle版本
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
转载请注明原文地址: https://ju.6miu.com/read-13030.html