33904

androidx 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' }

Answer1:

I added this to build.gradle to remove the error

configurations { implementation { exclude group: 'com.android.support', module: 'support-v4' } }

Unfortunately, I predict that you'll see a new error (at run-time) like this: java.lang.NoClassDefFoundError: Failed resolution of:

I believe this is an AndroidX issue that occurs with lots of support libraries that have yet to be updated to support AndroidX.

Recommend

  • sun.security.ssl.SSLSessionImpl not found
  • Update Android Studio Project to Kotlin 1.3
  • kotlin - run vs elvis operator - what is the difference?
  • What's the behavior of Iterable#all & Why did Kotlin Char::class.java != char.javaClass
  • How do I idiomatically call a nullable lambda in Kotlin?
  • Program type already present: org.hamcrest.CoreMatchers
  • android.support libraries not compatible together after updation
  • Gradle Build Failure java.io.IOException: The output jar is empty
  • Can not find symbol volley
  • Error ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate
  • exception android.support.multidex.MultiDexApplication cannot be cast class
  • update google services from 9.0.0 to 10.0.1 Android studio 2.2
  • Android Studio error: cannot find symbol class AdapterViewCompat with compileSdkVersion 23 and build
  • Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with th
  • Can't start a new project because of gradle error
  • Open (overflow) menu programmatically
  • Using Word2vec with Tensorflow on Windows
  • Why am I getting an error in my ASP.NET Core SQL Server Express Connection String?
  • Firefox extension testing and developing - I'm confused
  • goJS dropdown remove items
  • LNK1104: cannot open file 'kernel32.lib'
  • setContentView() is not enough to switch between layouts?
  • Freeing interfaced object that descends from a TRectangle
  • Classic ASP URL Rewriting
  • Any nice way to generate a timeline view of commits from subversion?
  • python: forcing relative imports to search from script file
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Laravel 4 routing not working due to .htaccess file?
  • Iron Router: How do I send data to the layout?
  • Implicit joins and Where in Doctrine - how?
  • How to generate and display a QR Code in ionic 2
  • Button text different than value submitted in query string
  • why do I get the error when installing the gem 'pg'? [duplicate]
  • Spring Data JPA custom method causing PropertyReferenceException
  • C# - Serializing and deserializing static member
  • Sending data from AppleScript to FileMaker records
  • How to include full .NET prerequisite for Wix Burn installer
  • log4net write single file for each call to log.info
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • Is it possible to post an object from jquery to bottle.py?