-
Notifications
You must be signed in to change notification settings - Fork 24k
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
can't compile and run my react native app #25936
Comments
I finally found the solution, something I was quite sure about doing, but thanks to this this guy #24733 (comment) :I had to delete "app\build\intermediates\signing_config\debug\out\signing-config.json" and now it works. |
thank bro!!! |
thanks, you just saved my ass in the nick of a meeting |
hi, i'm facing this problem and its weird cause it happened when i created a new project with react-native init two days ago. i can run the old project but when i try to use command react-native run-android in the new project it gives me an error.( i don't even have a build folder to delete ((: ) info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. FAILURE: Build failed with an exception.
The current character read is 'C' with an int value of 67
BUILD FAILED in 23s error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. FAILURE: Build failed with an exception.
The current character read is 'C' with an int value of 67
BUILD FAILED in 23s
|
same problem here i just ran the react-native run-android after i init the project |
I had the same problem, too and I have a fix that works for me. This is obviously a nasty workaround, but at least it worked for me. |
thank you @michivo |
@omidazm94 @michivo i have same problem but your solutions not works for me |
where i have to run that command |
This is a hack but it worked for me, thanks to @michivo Do this at line 182 of your native_modules.gradle: This is what you have: Replace (reactNativeConfigOutput) with (reactNativeConfigOutput - <fullPathToYourReactNativeCli.js>) As in: where |
I have the same problem. |
In my case, something is wrong with my AndroidManifest.xml file, |
Just wanna comment saying I'm using react native for the first time today, and following the install instructions having used ReactJS before, and I'm having the same thing. Tried @michivo's hack and uninstalled, changed, downgraded etc Node's install. Been at this for like 6 hours. Hope someone figures it out so I can finally switch from Flutter lol |
I tried this. It worked for me. |
Thanks its working for me. |
Folks these all seem like major hacks this stuff should work out of the box and puts serious doubts about react-native being fit for use...that being said I would suggest you check your permissions (assuming people are on Windows 10 like myself) - I found 90% of these issues were caused by VS Code not being started in admin mode, Windows Command consoles not using elevated permissions etc. |
@
I agree, I switched back to Flutter even after finally getting it working, and I always have VSCode, consoles in admin mode by default. |
Try updating the Node to the version 10.17.0. It helped me. |
I updated NodeJs to v12.14.1 then it worked!! |
I my case, I had error in manifest.xml, I had an errant |
This is exactly my situation! |
It works for me !! Thanks 😃😃😃😃 |
What definitely worked for me was add a file local.properties inside android folder with content sdk.dir = /home/{USER}/Android/Sdk and use react-native cli instead of @react-native-communuty/cli |
Running Terminal as Administrator in Windows did the trick for me... Other solutions did not work. |
@fxbayuanggara's #25936 (comment) was the solution for me. Check your |
In my case, something is wrong with my AndroidManifest.xml file, @fxbayuanggara Thank you for finding this kind of missings |
Works like a charm! |
Does it cause an error if there is space in the User's name? |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
I just can't compile and run my react native app, and I'm getting this message :
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\me\ReactNative\MyApp\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 190
What went wrong:
A problem occurred evaluating settings 'MyApp'.
The current character read is 'E' with an int value of 69
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0.
React Native version:
Steps To Reproduce
Describe what you expected to happen:
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: