rive-android icon indicating copy to clipboard operation
rive-android copied to clipboard

java.io.IOException - Unable to download Rive file

Open hamidMehmoodAkram opened this issue 1 year ago • 1 comments

Description

I am using Rive version 10.5.1, and Firebase Crashlytics has reported a crash when providing a URL to Rive. The crash occurs while loading the file from the network. Below is the Jetpack Compose code snippet:

AndroidView(
    modifier = modifier.fillMaxSize(),
    factory = { context ->
        RiveAnimationView
            .Builder(context)
            .setResource(url)
            .setAlignment(Alignment.CENTER)
            .setFit(Fit.FILL)
            .build()
    },
)

Error

RiveAnimationView.loadFromNetwork$lambda$5
java.io.IOException - Unable to download Rive file https://www.test.com/animated_Banner.riv
app.rive.runtime.kotlin.RiveAnimationView.loadFromNetwork$lambda$5 (RiveAnimationView.kt:494)

Firebase Crash Analytics Device Report

  • Samsung: 60%
  • Vivo: 33%
  • Rive Android Runtime Version: 10.5.1
  • Rive API: Compose
  • Device: Galaxy A21s,Vivo V2146
  • App Minimum SDK Level: 24
  • App Target SDK Level: 36
  • App NDK Level: 29.0.14206865
  • Frequency: rarely

hamidMehmoodAkram avatar Nov 19 '25 13:11 hamidMehmoodAkram

I'm waiting for your update on this crash. It is affecting our app in production.

eabdelmoaty avatar Dec 22 '25 08:12 eabdelmoaty