mardi 22 décembre 2015

React Native SQLite or filesystem storage build fails

Considering the libraries react-native-sqlite-storage and react-native-fs ,I follow their steps faithfully, but I get an error, and it's strange that's the same error for both libraries, just error name is changed.

JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

* Where:
Build file '/media/Storage/easyship/android/build.gradle' line: 9

* What went wrong:
A problem occurred evaluating root project 'easyship'.
> Could not find method compile() for arguments [project ':react-native-sqlite-storage'] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@501df9bd.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.629 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
http://ift.tt/1iJVcwy

I've never in my life used gradle before so I'm somewhat lost, so I need some guidance, also, I take priority for the filesystem storage.

Also I'm using react native 0.17.0 and for now I'm really blocked by this filesystem access issue, everything else, is sorted, but I need a place where to store the cookies to interact with my API so that they remain persistent when closing the app.

Aucun commentaire:

Enregistrer un commentaire