这不是Duplicate class android.support.v4.app.NotificationCompat$Action$Extender found in modules classes.jar (com.android.support:support的重复项,因为我们没有使用com.google.android.gms:play-services
并且提供的购买解决方案是更新Google Play库
当我们添加此存储库{
maven {
url "https://s3-eu-west-1.amazonaws.com/elasticode-sdk/Android/maven/"
}
}
dependencies {
compile 'com.elasticode.sdk:elasticode-android:2.1.1'
}
建立Gradel
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我的模块应用文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.app"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
repositories {
maven {
url "https://s3-eu-west-1.amazonaws.com/elasticode-sdk/Android/maven/"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.elasticode.sdk:elasticode-android:2.1.1'
}
发生错误
重复的班级 android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat 在模块classes.jar中找到 (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.ActionBarDrawerToggle classes.jar(com.android.support:support-core-ui:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.ActionBarDrawerToggle $ Delegate classes.jar(com.android.support:support-core-ui:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在中找到了android.support.v4.app.ActionBarDrawerToggle $ DelegateProvider 模块classes.jar(com.android.support:support-core-ui:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 的android.support.v4.app.ActionBarDrawerToggle $ SlideDrawable 模块classes.jar(com.android.support:support-core-ui:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.ActivityCompat (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.ActivityCompat $ 1 (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 android.support.v4.app.ActivityCompat $ OnRequestPermissionsResultCallback 在模块classes.jar中找到 (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 android.support.v4.app.ActivityCompat $ SharedElementCallback21Impl 在模块classes.jar中找到 (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.ActivityManagerCompat classes.jar(com.android.support:support-compat:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.ActivityOptionsCompat classes.jar(com.android.support:support-compat:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.AppOpsManagerCompat classes.jar(com.android.support:support-compat:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.BackStackRecord (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块classes.jar中找到android.support.v4.app.BackStackRecord $ Op (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.BackStackState (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.BackStackState $ 1 (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.DialogFragment (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.Fragment (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.Fragment $ 1 (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在android.support.v4.app.Fragment $ InstantiationException中找到 模块classes.jar(com.android.support:support-fragment:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.Fragment $ SavedState classes.jar(com.android.support:support-fragment:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.Fragment $ SavedState $ 1 classes.jar(com.android.support:support-fragment:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.FragmentActivity (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.FragmentActivity $ 1 (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.app.FragmentActivity $ HostCallbacks classes.jar(com.android.support:support-fragment:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 android.support.v4.app.FragmentActivity $ NonConfigurationInstances 在模块classes.jar中找到 (com.android.support:support-fragment:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.app.FragmentContainer
modules classes.jar(com.android.support:support-compat:28.0.0)和 internal_impl-23.0.0.jar(com.android.support:support-v4:23.0.0) 重复课程 android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory 在模块classes.jar中找到 (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory $ DefaultRoundedBitmapDrawable 在模块classes.jar中找到 (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 可以在以下位置找到android.support.v4.hardware.display.DisplayManagerCompat 模块classes.jar(com.android.support:support-compat:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 找到android.support.v4.hardware.fingerprint.FingerprintManagerCompat 在模块classes.jar(com.android.support:support-compat:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块classes.jar中找到android.support.v4.hardware.fingerprint.FingerprintManagerCompat $ AuthenticationCallback (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类
(com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.widget.ScrollerCompat (com.android.support:support-compat:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.SimpleCursorAdapter classes.jar(com.android.support:cursoradapter:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 android.support.v4.widget.SimpleCursorAdapter $ CursorToStringConverter 在模块classes.jar中找到 (com.android.support:cursoradapter:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在android.support.v4.widget.SimpleCursorAdapter $ ViewBinder中找到 模块classes.jar(com.android.support:cursoradapter:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.SlidingPaneLayout classes.jar(com.android.support:slidingpanelayout:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 android.support.v4.widget.SlidingPaneLayout $ AccessibilityDelegate 在模块classes.jar中找到 (com.android.support:slidingpanelayout:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 找到android.support.v4.widget.SlidingPaneLayout $ DisableLayerRunnable 在classes.jar模块中(com.android.support:slidingpanelayout:28.0.0) 和classes.jar(com.android.support:support-v4:23.0.0)复制 android.support.v4.widget.SlidingPaneLayout $ DragHelperCallback类 在模块classes.jar中找到 (com.android.support:slidingpanelayout:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在android.support.v4.widget.SlidingPaneLayout $ LayoutParams中找到 模块classes.jar(com.android.support:slidingpanelayout:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 找到android.support.v4.widget.SlidingPaneLayout $ PanelSlideListener 在classes.jar模块中(com.android.support:slidingpanelayout:28.0.0) 和classes.jar(com.android.support:support-v4:23.0.0)复制 类别android.support.v4.widget.SlidingPaneLayout $ SavedState在 模块classes.jar(com.android.support:slidingpanelayout:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在android.support.v4.widget.SlidingPaneLayout $ SavedState $ 1中找到 模块classes.jar(com.android.support:slidingpanelayout:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 android.support.v4.widget.SlidingPaneLayout $ SimplePanelSlideListener 在模块classes.jar中找到 (com.android.support:slidingpanelayout:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在classes.jar模块中找到android.support.v4.widget.Space (com.android.support:support-core-ui:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 1 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 2 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 3 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 4 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 5 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 6 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 7 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 在模块中找到android.support.v4.widget.SwipeRefreshLayout $ 8 classes.jar(com.android.support:support-v4:23.0.0)和classes.jar (com.android.support:swiperefreshlayout:28.0.0)重复的类 找到android.support.v4.widget.SwipeRefreshLayout $ OnRefreshListener 在模块classes.jar(com.android.support:support-v4:23.0.0)和 classes.jar(com.android.support:swiperefreshlayout:28.0.0)复制 在模块中找到的类android.support.v4.widget.TextViewCompat classes.jar(com.android.support:support-compat:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.TintableCompoundButton classes.jar(com.android.support:support-compat:28.0.0)和 internal_impl-23.0.0.jar(com.android.support:support-v4:23.0.0) 在中找到重复的类android.support.v4.widget.ViewDragHelper 模块classes.jar(com.android.support:customview:28.0.0)和 classes.jar(com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.ViewDragHelper $ 1 classes.jar(com.android.support:customview:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.ViewDragHelper $ 2 classes.jar(com.android.support:customview:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)重复的类 在模块中找到android.support.v4.widget.ViewDragHelper $ Callback classes.jar(com.android.support:customview:28.0.0)和classes.jar (com.android.support:support-v4:23.0.0)
转到文档以了解如何解决依赖关系解析错误。