修改了文件夹名,再打开项目,会报错
split lib_slice_1_apk was defined multiple times
是因为之前的项目编译过了,所以要先 Build -> clean project, 然后删除编译生成的文件夹 .gradle, .idea, build, 再编译就通过了
如果 Android studio通过 File->Project Structure->Dependencies,添加maven jar包时,发现无法添加jar包,
报错如下:
failed to resolve dependencies
修改build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
allprojects {
repositories {
jcenter()
}
}