Build error occurs in Android app with React Native 0.80, but it works fine in 0.76.

Open
#355 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
kotlin, react-native
Domain
mobile-dev

Research direction

The failure is reported at node_modules/rive-react-native/android/src/main/java/com/rivereactnative/RiveReactNativeView.kt:809. Start by inspecting that Kotlin call and comparing the React Native 0.76 and 0.80 dependency setups. Done means the Android app builds with React Native 0.80 without the String? versus String compilation error.

Written by the indexing model from the issue text.

Description

triage

Build error occurs in Android app with React Native 0.80, but it works fine in 0.76.

[0.80]
"react": "19.1.0",
"react-native": "0.80.0",
"rive-react-native": "^9.4.0"

[0.76]
"react": "18.3.1",
"react-native": "0.76.0",
"rive-react-native": "^9.4.0"

Task :rive-react-native:compileDebugKotlin FAILED

[Incubating] Problems report is available at: file:///.../Rive80/android/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
50 actionable tasks: 3 executed, 47 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

e: file:///.../Rive80/node_modules/rive-react-native/android/src/main/java/com/rivereactnative/RiveReactNativeView.kt:809:36 Argument type mismatch: actual type is 'String?', but 'String' was expected.

FAILURE: Build failed with an exception.

Dominant language
TypeScript
Stars
783
Forks
81
Avg merge
3d 6h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rive-app/rive-react-native

All issues in rive-app/rive-react-native

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.