influxdb-java
influxdb-java copied to clipboard
Crash when calling InfluxDBFactory.connect(...) on Kotlin
To do a web request I have to call InfluxDBFactory.connect(...) from a thread.
Thread { InfluxDBFactory.connect(URL) }.start()
But this immedialtey throws
W/om.my.app: Accessing hidden method Ljava/lang/invoke/MethodHandles$Lookup;-><init>(Ljava/lang/Class;I)V (greylist, reflection, allowed)
E/AndroidRuntime: FATAL EXCEPTION: Thread-6
Process: com..my.app, PID: 16619
I/Process: Sending signal. PID: 16619 SIG: 9
The relavant parts in my .gradle are as following.
implementation group: 'org.influxdb', name: 'influxdb-java', version: "2.20"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
and
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
Is this a bug in this library or am I missing something?