Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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....

like image 234
pramod J B Avatar asked Jul 27 '20 09:07

pramod J B


1 Answers

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

like image 175
Iva Avatar answered Nov 06 '22 10:11

Iva