androidx android.support.v4.app.INotificationSideChannel$Stub
在用androidx添加回收视图、数据绑定和实时数据显示后,我开始使用android jetbackandroidx android.support.v4.app.INotificationSideChannel$Stub,android,androidx,Android,Androidx,在用androidx添加回收视图、数据绑定和实时数据显示后,我开始使用android jetback android.support.v4.app.INotificationSideChannel$Stub。 到目前为止,我已经尝试了很多解决方案,但没有任何效果。当我不使用任何支持库时,为什么会显示此错误?我可以做些什么来解决它? 更新: 在回顾我的步骤之后,我删除了数据绑定,每件事情都很好,任何人都可以解释 这是我的毕业证书: apply plugin: 'com.android.applic
android.support.v4.app.INotificationSideChannel$Stub
。
到目前为止,我已经尝试了很多解决方案,但没有任何效果。当我不使用任何支持库时,为什么会显示此错误?我可以做些什么来解决它?
更新:
在回顾我的步骤之后,我删除了数据绑定,每件事情都很好,任何人都可以解释
这是我的毕业证书:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.ahmedmubarak.pixeapp"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0-beta01'
implementation 'androidx.cardview:cardview:1.0.0-beta01'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-beta01'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
}
我将此添加到
build.gradle
以删除错误
configurations {
implementation {
exclude group: 'com.android.support', module: 'support-v4'
}
}
不幸的是,我预测您将看到一个新的错误(在运行时),如下所示:
java.lang.NoClassDefFoundError:解析失败:
我相信这是一个AndroidX问题,很多支持库都还没有更新以支持AndroidX。我也有类似的问题。在我的例子中,这是因为我使用Glide库和androidx。此解决方案适合我:
true