AndroidX / JetPack Incompatibility
See original GitHub issue- I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
- ExoMedia version:
4.2.1
- Android Studio version:
3.1.2
- compileSdkVersion: ‘
android-P
’ - JetPack (androidx & jetifier enabled)
Reproduction Steps
- Include ExoMedia in an ‘android-P’ project
- Sync
- Copy the demo code in the Readme
- Compile & Run
The compilation fails with the following error:
Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
Message{kind=ERROR, text=Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy, sources=[Unknown source file], tool name=Optional.of(D8)}
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
AndroidX Overview - Android Developers
The androidx namespace comprises the Android Jetpack libraries. ... platform and provide backward compatibility across Android releases.
Read more >Unable to import any androidx libraries due to incompatible ...
I'm using gradle 6.7. Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a ...
Read more >Android Jetpack - Google Git
Jetpack comprises the androidx.* package libraries, unbundled from the platform APIs. This means that it offers backward compatibility and is updated more ...
Read more >Jetpack Compose by Tutorials, Chapter 13: Adding View ...
Learn how to use Jetpack Compose in new projects and combine it with the View API, or how to add Jetpack Compose to...
Read more >Now in Android: 64 - Independent versioning of Jetpack ...
Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. Today, we're covering updates ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My fix for this issue was moving all of my support libraries directly referenced in my build.gradle to androidX. After that a clean build and the problem went away. My team has been successfully migrating projects using ExoMedia since September.
You may also have issues with generated code. Check your annotation processor dependencies.
Please update to use androidx dependencies. This library is the only thing preventing us from turning off jetifier.