重复的类android.support.v4.All

时间:2019-05-28 08:52:09

标签: android

  

重复的班级   android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat   在模块classes.jar中找到   (com.android.support:support-compat:28.0.0)和classes.jar   (com.android.support:support-v4:24.0.0)

如此之多的错误

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

    defaultConfig {
        applicationId "com.example.sakhi.live_scoure"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        multiDexEnabled = true

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    dexOptions {
        preDexLibraries = false
        javaMaxHeapSize "4g"
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    testImplementation 'junit:junit:4.12'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.google.android.gms:play-services:10.0.1'
    implementation 'com.jakewharton:butterknife:8.8.1'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation files('libs/awais.jar')
    implementation 'com.android.support:support-vector-drawable:28.0.0'
    implementation 'com.android.support:multidex:1.0.3'

    implementation project(':dBPullToRefresh')

}
apply plugin: 'com.getkeepsafe.dexcount'

1 个答案:

答案 0 :(得分:0)

您使用的是旧版GCM服务,可以通过将以下行“ com.google.android.gms:play-services:10.0.1”替换为“ com.google.android.gms:play-services-gcm”来解决: 16.1.0'

通过替换此行,您可以解决,但我建议您将GCM升级为FCM(Firebase消息传递),因为GCM现在正在关闭其服务。