Jump to content
 
Phillrb

WaveVR Android library dependencies?

Recommended Posts

Hello,

I'm currently including my own Android .AAR library in my Unity project (Unity 2019.1.8f1) which has a conflict of dependencies with the WaveVR SDK.

The library requires the following to support its use of Kotlin:

  • implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72"
  • implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1"
  • implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"

These includes are so that the library can utilise:

  • kotlinx.coroutines.GlobalScope
  • kotlinx.coroutines.async

My project makes use of a 'mainTemplate.gradle' file to declare the above dependencies. There is a '**deps**' marker included which allows the WaveSDK to have its own dependencies injected into this file.

The end result are 100s of the following type of duplicate class errors:

  • Duplicate class kotlin.reflect.KMutableProperty1$Setter found in modules kotlin-stdlib-1.4.0.jar (org.jetbrains.kotlin:kotlin-stdlib:1.4.0) and org.jetbrains.kotlin-kotlin-stdlib-1.3.20.jar (:wvr_client:)

So...

  1. What are the Android library dependencies of the WaveSDK?
  2. How can I workaround this issue? Perhaps I can exclude some groups as suggested here: https://stackoverflow.com/questions/48027019/how-to-manage-different-support-library-versions-for-3rd-party-deps-with-gradle

Thanks

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...