pramod J B
pramod J B

Reputation: 77

Failed to start the app. Run CLI with --verbose flag for more details

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

Answers (2)

Mahamoud J
Mahamoud J

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

Iva
Iva

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.

enter image description here

Upvotes: 1

Related Questions