Open mirceaciu opened 5 years ago
Seems like some of the dependencies are incompatible with the JDK being used. Which version is it? You may try overriding Guice version with a later one.
Could the fact that I did not found all dependencies on maven be an issue? I've added only this ones to my project
dependencies {
implementation 'com.github.atomashpolskiy:bt-core:1.7'
implementation 'com.github.atomashpolskiy:bt-http-tracker-client:1.7'
implementation 'com.github.atomashpolskiy:bt-dht:1.7'
implementation fileTree(include: ['*.jar'], dir: 'libs')
}
bt-upnp
is not listed..
Your dependencies seem alright. I'd recommend to try overriding Guice's version in your app. This can be done by excluding dependency on Guice from Bt and including a dependency on a newer version of Guice in your project. Bt depends on Guice 4.1.0, so you may try 4.2.0, 4.2.1, 4.2.2 (https://search.maven.org/search?q=g:com.google.inject%20AND%20a:guice&core=gav).
Also you may google for "Caused by: java.lang.UnsupportedOperationException: can't load this type of class file". There seems to be an abundance of cases for this error in Android-related environments.
@mirceaciu have you been able to find a version of Guice that works?
Not an actual issue but could this library work for a native Android module with React Native? I tried using some basic examples
but this class will fail to initialize