andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.75k stars 521 forks source link

Error on bundled SQLite on react-native 0.62+ #497

Closed mjschutz closed 2 years ago

mjschutz commented 2 years ago

App is crashing after using bundled SQLite.

Expected Behavior

App not crashing

Current Behavior

App crashing with error bellow:

AndroidRuntime: java.lang.NoSuchMethodError: No interface method putMap(Ljava/lang/String;Lcom/facebook/react/bridge/WritableMap;)V in class Lcom/facebook/react/bridge/WritableMap; or its super classes (declaration of 'com.facebook.react.bridge.WritableMap' appears in

Possible Solution

Update build.gradle on "react-native-sqlite-storage/platforms/android-native" with com.facebook.react:react-native:+ or with a compatible version.

Steps to Reproduce (for bugs)

Use new react-native (0.62+) and add bundled SQLite on react-native.config.js

Context

Your Environment

Debug logs

mjschutz commented 2 years ago

I see that it was resolved here on repository, will use this version.