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 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)
more info:
react-native-cli: 2.0.1
react-native: 0.59.8
expo: 2.20.2
I'm still able to run expo start and it works in the expo client app. Thanks