You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When integrating the following Pubnub Kotlin sdk into an Android app for Fire TV, we get the error below:
implementation 'com.pubnub:pubnub-kotlin:9.2.2'
Task :app:lintVitalFiretvRelease FAILED
/Users/awardak/StudioProjects/devices-bod-firetv/app/build.gradle:193: Error: json defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0'
~~~~
Explanation for issues of type "DuplicatePlatformClasses":
There are a number of libraries that duplicate not just functionality of
the Android platform but using the exact same class names as the ones
provided in Android -- for example the apache http classes. This can lead
to unexpected crashes.
To solve this, you need to either find a newer version of the library which
no longer has this problem, or to repackage the library (and all of its
dependencies) using something like the jarjar tool, or finally, rewriting
the code to use different APIs (for example, for http code, consider using
HttpUrlConnection or a library like okhttp).
This only happens when we pull in the pubnub-kotlin dependency so it looks like the SDK has some classes that are duplicates of those inside kotlinx-serialization-json. Would it be possible to rename those?
The text was updated successfully, but these errors were encountered:
When integrating the following Pubnub Kotlin sdk into an Android app for Fire TV, we get the error below:
implementation 'com.pubnub:pubnub-kotlin:9.2.2'
Explanation for issues of type "DuplicatePlatformClasses":
There are a number of libraries that duplicate not just functionality of
the Android platform but using the exact same class names as the ones
provided in Android -- for example the apache http classes. This can lead
to unexpected crashes.
To solve this, you need to either find a newer version of the library which
no longer has this problem, or to repackage the library (and all of its
dependencies) using something like the jarjar tool, or finally, rewriting
the code to use different APIs (for example, for http code, consider using
HttpUrlConnection or a library like okhttp).
This only happens when we pull in the pubnub-kotlin dependency so it looks like the SDK has some classes that are duplicates of those inside kotlinx-serialization-json. Would it be possible to rename those?
The text was updated successfully, but these errors were encountered: