Android runtime for Rive.
app
configuration and target device. Ensure that the build variant is set to preview
(default) by opening the menu Build - Select Build Variant...
and selecting the preview
variant for app
.
The other build variants are for development purposes and require additional configuration, see CONTRIBUTING.MD.
Add the Rive dependency
build.gradle
file in your project:Initializing Rive
Add RiveAnimation to your layout
.riv
file (i.e off_road_car_blog.riv
) and placed it in your raw resources folder.