Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29498

After Expo Eject, run-android error: spawnSync gradlew.bat Enoent

$
0
0

I was using expo, but then needed to link a third party package so I ejected from expo with Expo Kit. now when i try react-native run-android, the metro bundler starts but then the following error occurs:

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 haveset up your Android development environment:https://facebook.github.io/react-native/docs/getting-started.htmlerror spawnSync gradlew.bat ENOENTdebug 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)

more info:react-native-cli: 2.0.1react-native: 0.59.8expo: 2.20.2

I'm still able to run expo start and it works in the expo client app. Thanks


Viewing all articles
Browse latest Browse all 29498

Trending Articles