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
even when rn doctor does not detect any error, npx rn run android does not work #2159
Comments
Hey @rmlinx, could you please run |
hi, sorry for the delay into the response, probably because of time zones i have missed the notification, btw here is what you asked to be realistc, i didnt understood any of this lmao, in advance, thank you very much for the help |
sorry unintentionally closed the doubt, so ... the formatting went missing in the last comment, here is it, with the layout |
Could you please run app from Android Studio? |
|
@rmlinx just click Run button in right top corner. |
The button is greyed out😔 |
@rmlinx Hi, I am getting the same error. Did you fix the error? |
Nah, i couldnt solve it, just gave up, and changed the computer i was using, problaly something related to a config, but i dont know what or why |
Are you serious ? Thanks for your reply |
Ye |
@Ramazanzade one reason the run button will be greyed out is if the project state isn't in sync with Gradle. You might see this banner at the top of the editor window when looking at If you. see that, try 'Sync now' and see if it completes. If it's not there, you can choose "Sync Project with Gradle Files" from the toolbar (button has an elephant and an arrow on it). It's also in the File menu. See if that completes successfully and enables the run button. |
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
@rmlinx A similar problem has happened to me before, Let's look into it. If i understood it correctly the key parts are... Workaround 1 : For the path error with special characters try moving Área de Trabalho, into a seperate path without special characters and spaces like C:\Projects\AwesomeProject. ( the special character being the way we use Á Workaround 2: There is a possibility that the Node Modules didn't install correctly, or that there are missing modules. The fix could be to delete node_modules folder. Navigate to your project directory in the command line run Workaround 3: Try Clearing Cache, this can also cause issues sometimes. run npm start -- --reset cache or yarn start --reset cache ( to reset the metro bundler the thing that combines your javascript code in react native). i presume you are using android you can try cleaning the Gradle build by navigating into your folder android folder. ( Workaround 4: Ensure the environment setup. you mentioned that the doctor indicated it was properly setup. Verify this by following the react-native environment setup guide. Lastly run with debugging options. what we can see in the error message is that it suggest to run --stacktrace, --info, or --debug. for more detailed outputs. navigate to the projects android directory ( Visual Example of the Directory Change C:\Projects\AwesomeProject. Espero que ajude. |
just run these command npx react-native run-android and then try this npm start --reset-cache |
am new here, so already sorry if I committed any mistake in this prompt. So I am willing to create an app, I followed all the instructions on the starter page but, when I try to run "npx react-natin run-android" i get as a feed back this
`S C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\Área de Trabalho\SmartMobility 2.0\AwesomeProject> npx react-native run-android
info JS server already running.
info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
:ReactNative:Unexpected empty result of running '[node, C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\�?rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli\build\bin.js, config]' command.
:ReactNative:Running '[node, C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\�?rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli\build\bin.js, config]' command failed.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\�rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 389
What went wrong:
A problem occurred evaluating script.
BUILD FAILED in 1s`
What can i do? the doctor function says that everything is ok
The text was updated successfully, but these errors were encountered: