链接库故障

时间:2019-02-04 15:57:42

标签: react-native react-native-android

我正在尝试链接这个名为react-native-text-detector的库。 但是,我始终收到一条错误消息,指出命令失败:gradlew.bat installDebug

我尝试将settings.gradle中的'\'更改为'/'。但是,仍然会弹出相同的错误

我一直在做的就是这个

  1. 本机初始化textDetectorTesting
  2. npm install --save react-native-text-detector
  3. 本机链接

这是我收到的错误

BUILD FAILED in 41s
42 actionable tasks: 42 executed
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:
https://facebook.github.io/react-native/docs/getting-started.html

Command failed: gradlew.bat installDebug

Error: Command failed: gradlew.bat installDebug
    at checkExecSyncError (child_process.js:622:11)
    at Object.execFileSync (child_process.js:640:13)
    at runOnAllDevices (C:\Users\tanch\textdetector4\node_modules\react-native\local-cli\runAndroid\runAndroid.js:299:19)
    at buildAndRun (C:\Users\tanch\textdetector4\node_modules\react-native\local-cli\runAndroid\runAndroid.js:135:12)
    at isPackagerRunning.then.result (C:\Users\tanch\textdetector4\node_modules\react-native\local-cli\runAndroid\runAndroid.js:65:12)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)

0 个答案:

没有答案