2 Answers2

1

Try running your app with the yarn command, otherwise run npm-doctor to make sure all your packages are updated and fixed.

otherwise try installing dependencies for expo using :

npm install -g yarn
yarn add global react-native
yarn add global react-native-cli
react-native init sample

here's a quick link to the npm-doctor documentation:

Also here's some tutorial on running react-native app using yarn command:

SpaceBoy
  • 130
  • 10
  • Could not initialize class org.codehaus.groovy.runtime.InvokerHelper . this error i got,, andorid emulator n all are working . but when installing app in the emulator ,, i got this error – SURENDRA GIRI Sep 09 '20 at 11:33
  • 1
    There is an issue supporting JDK 14, try downloading gradle version 6.3 and this will fix your problem – SpaceBoy Sep 09 '20 at 14:25
0

I find this solution .. i just replace 6.2 with 6.3

in android/gradle/ gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip