Android 多个程序包名为';com.daimajia.slider.library';安卓工作室
我正在尝试使用库创建android图像滑块: 但在我将库添加到项目中后,gradle给了我一个错误:不止一个库的包名为“com.daimajia.slider.library” 我的项目中有以下build.gradle文件:Android 多个程序包名为';com.daimajia.slider.library';安卓工作室,android,gradle,Android,Gradle,我正在尝试使用库创建android图像滑块: 但在我将库添加到项目中后,gradle给了我一个错误:不止一个库的包名为“com.daimajia.slider.library” 我的项目中有以下build.gradle文件: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '25.0.1' defaultConfig { applicationId "i
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
defaultConfig {
applicationId "ir.korandco.irkhoone_mobile_app"
minSdkVersion 11
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':bottom-bar')
compile project(':library')
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'
compile group: 'org.jacoco', name: 'org.jacoco.agent', version: '0.7.5.201505241946'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5@aar'
compile 'com.daimajia.androidanimations:library:1.0.3@aar'
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'org.mockito:mockito-core:1.10.19'
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
android {
useLibrary 'org.apache.http.legacy'
}
}
和gradle图书馆:
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
enforceUniquePackageName = false
defaultConfig {
minSdkVersion 8
targetSdkVersion 22
versionCode 15
versionName "1.1.5"
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile "com.android.support:support-v4:22.1.1"
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.nineoldandroids:library:2.4.0'
}
您是否将其作为jar或库项目包含?谢谢,错误已修复。我在项目中重复我的库依赖项