react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

Adding SQLite bundled with this library (includes support for FTS5) does not build

Open 386sx opened this issue 5 years ago • 4 comments

Expected Behavior

Using bundled SQLite should work after adding configuration to react-native.config.js

Current Behavior

Build crashes with PackageList.java:17: error: package io.liteglue does not exist import io.liteglue.SQLitePluginPackage; ^ /android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:99: error: cannot find symbol new SQLitePluginPackage(), ^ symbol: class SQLitePluginPackage location: class PackageList

Steps to Reproduce (for bugs)

Follow the instructions on https://github.com/andpor/react-native-sqlite-storage#how-to-use-android

Context

Just trying to add the FTS5 version to my project. Builds succeed without the configuration snippet mentionened above.

Your Environment

  • React Native SQLite Storage Version used: 4.1.0
  • React Native version used: 0.60.5
  • Operating System and version (simulator or device): device, Pixel 3, Android 10
  • IDE used: Editor
  • Link to your project:

Debug logs

PackageList.java:17: error: package io.liteglue does not exist import io.liteglue.SQLitePluginPackage; ^ /android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:99: error: cannot find symbol new SQLitePluginPackage(), ^ symbol: class SQLitePluginPackage location: class PackageList

386sx avatar Mar 10 '20 21:03 386sx

I tried updating react-native.config.js as described in the react-native >= 0.60 instructions at https://github.com/andpor/react-native-sqlite-storage#how-to-use-android, but that did not work. Then, I tried following the instructions for react-native <= 0.59 and encountered the same problem as the OP. I tried to hack around the issue by changing io.liteglue to another SQLitePluginPackage that was available from some other package, but that did not work.

  • react-native 0.62.2
  • react-native-sqlite-storage 5.0.0

chaselal avatar Aug 20 '20 18:08 chaselal

did anyone get this working?

psvnlsaikumar avatar Apr 01 '22 16:04 psvnlsaikumar