Skip to content

java.io.IOException - Unable to download Rive file #422

@hamidMehmoodAkram

Description

@hamidMehmoodAkram

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions