React Native, Why Is React-native Run-android Not Working?
I'm trying to run command react-native run-android but it's throwing an error. I'm following docs I followed every step but it's not working, I think it's not picking the path but
Solution 1:
Do these.
- Make sure JDK version is 8 or newer.
- Make sure android path's are correctly set.
- Remove android/build and android/app/build folders.
Edit: If JDK version is 14 and and gradle version is less than 6.3 You have to either downgrade JDK to 11 or upgrade gradle to above 6.3
Solution 2:
Seems that your issue is related to: How solve (Could not initialize class org.codehaus.groovy.reflection.ReflectionCache) issue in react native
Also it says that you have RN has troubles launching an emulator. So you probably need to launch it yourself, or connect real device
Post a Comment for "React Native, Why Is React-native Run-android Not Working?"