我有几个单独的项目,我想将它们集成到一个完整的项目中。我以图书馆的身份进入该项目,但遇到了麻烦:
错误:程序类型已存在:com.nineoldandroids.animation.Animator
这是我的两个代码:
build.gradle:应用
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "xxx.xx.xxxx"
minSdkVersion 17
targetSdkVersion 23
versionCode 45
versionName '3.5'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.github.chrisbanes.photoview:library:1.2.3'
compile 'com.facebook.android:facebook-android-sdk:4.0.1'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.google.firebase:firebase-core:10.0.0'
compile 'com.google.firebase:firebase-ads:10.0.0'
compile 'com.google.firebase:firebase-messaging:10.0.0'
compile 'com.google.android.gms:play-services-gcm:10.0.0'
compile 'com.google.android.gms:play-services-ads:10.0.0'
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
compile files('libs/adad-client-3.1.jar')
compile project(path: ':onlinemp3')
}
apply plugin: 'com.google.gms.google-services'
这是我的第二个项目,已添加为库
apply plugin: 'com.android.library'
android {
compileSdkVersion 24
buildToolsVersion '25.0.0'
defaultConfig {
minSdkVersion 17
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
testCompile 'junit:junit:4.12'
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.google.android.exoplayer:exoplayer:r2.4.0'
compile 'com.sothree.slidinguppanel:library:3.3.1'
compile 'com.github.claucookie.miniequalizer:library:1.0.0'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile 'com.github.mancj:SlideUp-Android:2.2.5'
}