Closed leolr02 closed 9 months ago
Seeing similar issue: Fatal Exception: java.lang.UnsatisfiedLinkError: No implementation found for long app.rive.runtime.kotlin.renderers.Renderer.constructor(boolean, int) (tried Java_app_rive_runtime_kotlin_renderers_Renderer_constructor and Java_app_rive_runtime_kotlin_renderers_Renderer_constructor__ZI)
version rive:app.rive:rive-android:8.2.2
I found the solution, I change the following dependencies:
buildToolsVersion "30.0.3" compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 }
kotlinOptions {
jvmTarget = "11"
}
rive to 'app.rive:rive-android:4.0.0' initializer to "androidx.startup:startup-runtime:1.1.1" kotlin stdlib to "org.jetbrains.kotlin:kotlin-stdlib:1.8.0"
dependencies { classpath 'com.android.tools.build:gradle:7.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0" }
I hope that is useful for you
If you want to initialize Rive in a specific context
, you can also call:
// YourRiveActivity.kt
class YourRiveActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Rive.init(this)
…
}
}
I'm going to close this for now as it seems resolved.
I also recommend upgrading to the latest rive-android
, currently we're at 8.2.3
gradle version: 6.8.3
Rive version: app.rive:rive-android:5.0.0
kotlin gradle version: 1.8.0
Kotlin version: 1.7.1
I trying to load a Rive file animation from a raw folder via xml :
And init Rive in the Activity in onCreate function: Rive.init(this)
Tha'ts my provider on Manifest file:
But when the app run, throws me this error:
No implementation found for long app.rive.runtime.kotlin.core.File.import(byte[], int) (tried Java_app_rive_runtime_kotlin_core_File_import and Java_app_rive_runtime_kotlin_core_File_import___3BI)
What I'm doing wrong? :(