androidx android.support.v4.app.INotificationSideChannel $ Stub [英] androidx android.support.v4.app.INotificationSideChannel$Stub
问题描述
在添加带有androidx和数据绑定的回收视图并开始显示实时数据之后,我正在使用android jetback
android.support.v4.app.INotificationSideChannel$Stub
.
到目前为止,我已经尝试了很多解决方案,但是没有任何帮助.当我不使用任何支持库时,为什么会显示此错误,我该怎么解决?
更新 :
追溯我的步骤后,我删除了数据绑定,并且一切正常,任何人都可以解释
这是我的礼物:
I was working with android jetback after add recycle view with androidx and databinding and live datait started showing
android.support.v4.app.INotificationSideChannel$Stub
.
I have tried a lot of solutions so far but nothing has helped. Why does it show this error when I am not using any support library and what can I do to solve it?
update :
after retracing my steps i removed the data binding and every thing worked fine can any one explain
Here is my gradle:
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
以消除错误
I added this to build.gradle
to remove the error
configurations {
implementation {
exclude group: 'com.android.support', module: 'support-v4'
}
}
不幸的是,我预测您将在运行时看到一个新错误,如下所示:
java.lang.NoClassDefFoundError: Failed resolution of:
Unfortunately, I predict that you'll see a new error (at run-time) like this:
java.lang.NoClassDefFoundError: Failed resolution of:
我相信这是一个AndroidX问题,很多支持库尚未更新以支持AndroidX.
I believe this is an AndroidX issue that occurs with lots of support libraries that have yet to be updated to support AndroidX.
这篇关于androidx android.support.v4.app.INotificationSideChannel $ Stub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!