Android Studio中的android.support.v4.app.INotificationSideChannel

时间:2019-11-12 09:44:00

标签: android android-studio gradle

我在android studio中出错:

程序类型已存在:android.support.v4.app.INotificationSideChannel $ Stub $ Proxy 消息{种类=错误,文本=程序类型已存在:android.support.v4.app.INotificationSideChannel $ Stub $ Proxy,来源= [未知源文件],工具名称= Optional.of(D8)} < / p>

这是我的模块gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "fr.xyz.application"
        minSdkVersion 23
        targetSdkVersion 26
        versionCode 47
        versionName "1.1"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        manifestPlaceholders = [
                onesignal_app_id: 'c52d60a9-812a-42d2-9157-7d2e5d777803',
                onesignal_google_project_number: 'REMOTE'
        ]
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    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.android.support:design:28.0.0'

    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
    implementation 'io.reactivex:rxjava:1.2.1'
    implementation 'io.reactivex:rxandroid:1.2.1'

    implementation 'com.google.firebase:firebase-core:17.2.1'
    implementation 'com.google.firebase:firebase-messaging:20.0.1'

    implementation 'com.onesignal:OneSignal:[3.11.2, 3.99.99]'


    implementation 'com.google.firebase:firebase-auth:16.0.2'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

我将其添加到我的gradle.properties

android.useAndroidX=true
android.enableJetifier=true

但仍然出现错误。有人知道如何解决吗?谢谢

编辑:我已经尝试过这篇文章的答案,但不幸的是,它不适用于我。

0 个答案:

没有答案