好奇葩,不小心碰到这个问题了,本来好好的工程,我不小心操作发现这个出问题了
就是build.gradle文件,错误的如下
apply plugin: 'com.android.library'
<span style="color:#ff6666;">apply from: 'bintray.gradle'</span>
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
}
<span style="color:#ff0000;">apply from: 'bintray.gradle'</span>
问题就在我把那个apply from从最后一行移到上边去了。。。无语