链接某些模块后无法构建React Native

时间:2019-05-31 10:48:00

标签: react-native

我已经成功链接了一些模块(react-native-gesture-handler,i18n,react-native-svg)。但是在链接了某些模块(例如react-native-maps和react-native-camera)后,react native停止构建。并向我显示这样的错误;

> Task :app:mergeDebugResources FAILED
Error: Cannot create directory D:\Work\project\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture fingerprint of output files for task ':app:mergeDebugResources' property 'incrementalFolder' during up-to-date check.
> Could not read path 'D:\Work\project\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values'.

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

* Get more help at https://help.gradle.org
BU¦LD FAILED in 0s
error 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
error Command failed: gradlew.bat app:installDebug
debug Error: Command failed: gradlew.bat app:installDebug
    at checkExecSyncError (child_process.js:621:11)
    at execFileSync (child_process.js:639:15)
    at runOnAllDevices (D:\Work\project\node_modules\@react-native-community\cli\build\commands\runAndroid\runOnAllDevices.js:58:39)
    at buildAndRun (D:\Work\project\node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js:142:41)
    at D:\Work\project\node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js:104:12
    at processTicksAndRejections (internal/process/task_queues.js:89:5)

真的很烦。之前我使用过expo,一切都很好。但是现在我不能使用相机,二维码,地图...

反应本机版本;

react-native-cli: 2.0.1
react-native: 0.59.8

编辑;我尝试将手动和自动链接起来。

0 个答案:

没有答案