New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx react-native run-android Failing in macOS #28712
Comments
|
Hi I have updated Question with Environment Information. It says Android SDK missing. But I have already installed it |
@RockinGarg i hope it helps you 1、open a terminal
5、source ~/.bash_profile(if it doesn't work,next) |
Can confirm this bug. Started a new project last night and ran up against this. Tried again, and tried @sunguoxing0628's suggestions, but still getting this: Environment details:
And just in case the
edit: updated env details |
@jwd2a |
Hi @sunguoxing0628 none worked for me I tried your solutions |
For now I used Android Studio to Build App once. But it is still issue that it doesn't work with command Line |
my environment information.
|
Hi,
|
Hi All
|
If I'm understanding correctly this works when running directly but not from the CLI? Did the last set of tips about your bash config help? Have you been able to get |
Hi yes you are right Bash changes i made as suggested none worked React-native doctor says |
This is happening for me too. It was all working fine yesterday, I could run my RN app on both iOS and Android.
Doing
I followed the installation instructions to the T, and it was all working correctly yesterday. That suggests to me there's something up with the environment variables but I can't work out what it is. Here's my
Running |
Update: running this appears to fix the issue. No idea why.
|
Hi @developius that seems helped me with previous error
|
@gokhandoslu It works great for me! Thanks a lot. |
@RockinGarg There were plenty of errors/warnings in that log to follow up on. Did you end up getting unblocked? |
Hi I used Android Studio to manually install Build on Android Emulator then manually launch the App by running server. I am still unable to use |
I have the same error with you, so I launch the app in Android Studio, It work well。 |
what are you doing here for be like this |
@Mhde96 @mylesshie @RockinGarg Your logs include a message about missing adb ( |
Hello, I am experiencing a similar issue in my macOS + Android Studio setup when running The only way I can get it to work is by building the project from Android Studio. Also:
This is occurring with the 0.63.3 release. Could someone please advise? This is the error:
And the info from
The result of running
|
I am facing the same issue. |
Setting up a Would be helpful to mention adding |
Hi can you share your full bash_profile or where have you set java_home variable |
@RockinGarg I use zsh. This is my .zshrc configuration for react-native:
|
In my case I had to install Android SDK Command-line Tools (in SDK Manager > SDK Tools) in order to |
This link(https://stackoverflow.com/questions/35000729/android-studio-could-not-initialize-class-org-codehaus-groovy-runtime-invokerhel) and @campsjos's comment helped me to fix the issues for |
I would like to close this issue If anyone think this issue is occurring feel free to open My observation This makes it works sometimes |
Thanks @developius this has sloved my issues. |
AVD Manager:
Nexus 6p with Android R and Android Pie
Installed SDK:
SDK Platforms
bash_profile or bashrc
Command Used: nano .bash_profile
Command used: npx @react-native-community/cli doctor
Command used: npx react-native run-android
File local.properties inside android folder of React-native project
Command: react-native info Environment Information
Even ran brew cask install android-sdk Just to make it work
Logs Below
Issue Still same
The text was updated successfully, but these errors were encountered: