gpt4 book ai didi

android - Expo Eject 后,run-android 错误 : spawnSync gradlew. bat Enoent

转载 作者:行者123 更新时间:2023-12-04 13:41:04 26 4
gpt4 key购买 nike

我正在使用 expo,但后来需要链接第三方包,所以我使用 Expo Kit 从 expo 中弹出。现在当我尝试react-native run-android ,metro bundler 启动,但随后出现以下错误:

info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
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 spawnSync gradlew.bat ENOENT
debug Error: spawnSync gradlew.bat ENOENT
at Object.spawnSync (internal/child_process.js:981:20)
at spawnSync (child_process.js:585:24)
at execFileSync (child_process.js:613:13)
at runOnAllDevices (C:\Users\Mahmoud's Laptop\RN\ikraawarka\node_modules\@react-native-community\cli\build\commands\runAndroid\runOnAllDevices.js:58:39)
at buildAndRun (C:\Users\Mahmoud's Laptop\RN\ikraawarka\node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js:142:41)
at then.result (C:\Users\Mahmoud's Laptop\RN\ikraawarka\node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js:104:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

更多信息: react-native-cli: 2.0.1 react-native: 0.59.8 expo: 2.20.2
我仍然能够运行 expo start 并且它可以在 expo 客户端应用程序中运行。谢谢

最佳答案

如果你们只是简单地被驱逐到博览会套件expo start在您的项目目录中并在您的 Android Studio 或 XCode 中运行该项目。

关于android - Expo Eject 后,run-android 错误 : spawnSync gradlew. bat Enoent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56981214/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com