react-native-cli: 2.0.1 react-native: 0.42.0 npm :3.5.2

I install sqlite on react native using this tutorial: https://github.com/remobile/react-native-sqlite when I'm done I executed this command : react-native run-android I have this error :
Cannot parse yarn version: 0.22aroundScanning 547 folders for symlinks in /home/sofiane/projet/sql/node_modules (6ms)aroundStarting JS server...aroundBuilding and installing the app on the device (cd android && ./gradlew installDebug)...aroundaroundFAILURE: Build failed with an exception.aroundaround* Where:aroundBuild file '/home/sofiane/projet/sql/android/build.gradle' line: 9aroundaround* What went wrong:aroundA problem occurred evaluating root project 'sql'.around> Could not find method compile() for arguments [project ':react-native-sqlite'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.aroundaround
build.gradle :
// Top-level build file where you can add configuration options common to all sub-projects/modules.aroundaroundbuildscript {around repositories {around jcenter()around }around dependencies {around classpath 'com.android.tools.build:gradle:2.2.3'around compile project(':react-native-sqlite')around // NOTE: Do not place your application dependencies here; they belongaround // in the individual module build.gradle filesaround }around}aroundaroundallprojects {around repositories {around mavenLocal()around jcenter()around maven {around // All of React Native (JS, Obj-C sources, Android binaries) is installed from npmaround url "$rootDir/../node_modules/react-native/android"around }around }around}

1 réponse


Bonsoir.
Pour information ce site est français, il serait donc un minimum respectueux d'utiliser la langue française sur ce site.
Cela devient de plus en plus agaçant, ces personnes ne devraient pas mériter de recevoir une réponse de notre part.