Reputation: 77
Error: Command failed: adb shell am start -n com.getgroceryapp/com.getgroceryapp.MainActivity at makeError (F:\desuvit\projects\workingbranch\MobileApp\node_modules\execa\index.js:174:9)
node version: 12.4.0 npm version: 6.14.7 Using these command for running the app: 1)react-native run-android or npx react-native run-android also same error
after i upgraded to v12.18.3(node version) also same error. but i'm trying to run the project getting above error please help me
advance thanks....
Upvotes: 6
Views: 16687
Reputation: 1
If you previously installed a global react-native-cli package, please remove it as it may cause unexpected issues:
npm uninstall -g react-native-cli @react-native-community/cli
Upvotes: 0
Reputation: 1514
Open Android Studio File -> Project Structure -> Gradle Settings -> Gradle JDK
and set up as
Embedded JDK
This worked for me after trying so many other options.
Upvotes: 1