react-native-sqlite-storage: RN 0.61.1: AndroidRuntime: java.lang.NoSuchMethodError: No interface method pushMap

After upgrading to RN 0.61.1, I’m getting this at runtime from Android:

I/ReactNativeJS: creating new connection
E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1
    Process: com.myapp, PID: 6821
    java.lang.NoSuchMethodError: No interface method pushMap(Lcom/facebook/react/bridge/WritableMap;)V in class Lcom/facebook/react/bridge/WritableArray; or its super classes (declaration of 'com.facebook.react.bridge.WritableArray' appears in /data/app/com.myapp-esZnhIVV3rrQc3ZkQympzg==/base.apk)
        at io.liteglue.SQLitePlugin$SQLiteDatabaseNDK.executeSqlStatementNDK(SQLitePlugin.java:726)
        at io.liteglue.SQLitePlugin$SQLiteDatabaseNDK.executeSqlBatch(SQLitePlugin.java:610)
        at io.liteglue.SQLitePlugin$DBRunner.run(SQLitePlugin.java:793)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)

Here’s the code in question:

https://github.com/andpor/react-native-sqlite-storage/blob/716cd0f1ed640dc8d29287898c87bc9012494a79/platforms/android-native/src/main/java/io/liteglue/SQLitePlugin.java#L726

It looks like the behavior ofcom.facebook.react.bridge may have changed?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 20 (12 by maintainers)

Most upvoted comments

fixed android-native/build.gradle react-native version: 0.61.1 dependencies { implementation 'com.facebook.react:react-native:0.61.5' implementation files('libs/sqlite-connector.jar') }

@jlemm45 @Serdans @clytras I have a candidate fix for this. Can you try it?

If you’re using yarn, you can reference this PR with "react-native-sqlite-storage": "andpor/react-native-sqlite-storage#404/head", in package.json.