Skip to content

react-native-sqlite-storage installation issue in android #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
svsShiva opened this issue Sep 18, 2019 · 9 comments
Closed

react-native-sqlite-storage installation issue in android #384

svsShiva opened this issue Sep 18, 2019 · 9 comments

Comments

@svsShiva
Copy link

Current Behavior

Running application in android (react-native run-android) gives following error

> Could not resolve project :react-native-sqlite-storage.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-sqlite-storage:
- None of the consumable configurations have attributes.

Possible Solution

change following path in settings.gradle
from
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')

to
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/platforms/android')

Steps to Reproduce (for bugs)

Installation in android as per docs

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): "android 9.0 "
  • IDE used: "Visual studio code"
@gajjartejas
Copy link

Same here. Hope it will fix soon :)

JoshWalkerJolt pushed a commit to joltup/react-native-sqlite-storage that referenced this issue Sep 19, 2019
JoshWalkerJolt pushed a commit to joltup/react-native-sqlite-storage that referenced this issue Sep 19, 2019
@deborahhellen
Copy link

+1 also have the same issue with same environment setup.

@GRISHENK0
Copy link

+1 I have the same issue.

@sanjay-salunkhe
Copy link

+1 i have the same issue as well

@knspatel
Copy link

knspatel commented Nov 4, 2019

+1 i have the same issue as well.

React Native SQLite Storage Version used: "^4.1.0"
React Native version used: "0.59.8"
Operating System and version (simulator or device): "android 9.0 "
IDE used: "Visual studio code"

@Symous
Copy link

Symous commented Nov 13, 2019

the solution provided by @svsShiva works for me:

change following path in settings.gradle
from
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')

to
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/platforms/android')

Thanks. :)

@GRISHENK0
Copy link

GRISHENK0 commented Nov 20, 2019

the solution provided by @svsShiva works for me:

change following path in settings.gradle
from
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')

to
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/platforms/android')

Thanks. :)

I've finally tried this ans or works for me !

@RobTheFiveNine
Copy link

+1 for changing the path as suggested by @svsShiva. Thanks ❤️

@SnehalAgrawal
Copy link

you can see the examples shared below. These are very easy and simple posts for the CRUD operations:

  1. Example of SQLite Database in React Native
  2. Example to Load Pre Populated SQLite Database in React Native
  3. How to See SQLite Database Data Saved in Device using Android Studio

@andpor andpor closed this as completed in 52fcd15 Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants