Hi,
I am new to react-native and I installed all required program as https://facebook.github.io/react-native/docs/getting-started.html
but when I create a new project as the follwoing:
react-native init AwesomeProject
cd AwesomeProject
react-native run-android
I got an error as the below image
windows 10
jdk8
node version v10.7.0
react-native-cli: 2.0.1
I tried everything recommended on internet, nothing is working. I am totally stuck on it. Please help.
same problem
it is a bug in react-native version 56.0
so resolve this problem you have to edit package.josn and change the version of react native as below:
"react-native": "^0.55.4",
and in android\app\build.gradle add
dependencies {
…
...
compile ("com.facebook.react:react-native:0.55.4") { force = true }
}
delete node_modules
npm install --save-dev [email protected]
npm install
Hope this will help you ….
@hdamis I tried your solution but it doesn;t work.
here is what it says after I run react-native run-android
FAILURE: Build failed with an exception.
edite app.json to solve this problem:
{
"expo": {
"sdkVersion": "23.0.0" // your device android sdk ver!
}
}
I'm having the same issue, and also the same issue following hdamis' advice. Isaac, your suggestion does not work for me.
Isaac, still not working. but thanks for commenting.
bradrar, I am on to new errors now but I just resolved this particular 500 error in the following way:
delete node_modules folder
clean npm cache
change react-native version to 0.55.4 in packages.json
npm install
I'm having the same issue tried solution above still not working!
This looks like an ongoing issue. I'm avoiding it by now for running a
react project initialized on 0.55.4
On Sat, Aug 11, 2018, 11:52 PM Mark Hermano, notifications@github.com
wrote:
I'm having the same issue tride solution above still not working!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/react-community/create-react-native-app/issues/721#issuecomment-412322749,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASZsATg-5A-Oqp10luZBpI6u8l8O3Wc6ks5uP9DGgaJpZM4VliVe
.
I found a workaroud from here: https://github.com/react-community/create-react-native-app/issues/401
hermanomark thanks bro.... its working...
hello , fast solution is :
1 - delete node_modules folder
2 - edit package json : react-native version to "55.4" or "55.2" and babel-preset-react-native to "4.0.0"
3 - run npm install or yarn install command
4 - you're done 👍
@hermanomark methods works for me, thanks a lot!
@qweasdzxc23 works for me, Thanks alot!
I had the same problem, and solve it with the suggested by @qweasdzxc23, but ¿I would like to know why this problem occurs and what is the reason for this solution?
Thanks @qweasdzxc23 @hermanomark @NicWickman your solution really works
I am also getting same issue, I tried many ways, but didn't work
But why should we do all this.. can't the react guy fix this issues from their end also react v 56.0 is having issues too
React 57 is supposed to fix the issue, but I'm unwilling to risk updating
to find out.
On Thu, Sep 13, 2018, 3:09 AM Chinedu Ekene Okpala, <
[email protected]> wrote:
But why should we do all this.. can't the react guy fix this issues from
their end also react v 56.0 is having issues too—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/react-community/create-react-native-app/issues/721#issuecomment-420955254,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASZsATIIPDV7uFCLaAiyWKf0OvWQuVy5ks5uai7egaJpZM4VliVe
.
The issue still persists in React 57.
lol, just tried build this on 0.57 still fails
Also getting this error with 0.57
@phprad , @kevinzhangftw , @mrkmg
I don't know, Have You found the solution already, but try this if You still need it
https://github.com/facebook/react-native/issues/21310
It's work for me
I tried all the ways you said. The error still persists.
I tried all the ways you said. The error still persists.
@juliocmalvares if all the solutions didn't work for you. You can initialized a new project with a specific version => $ react-native init newproject --version [email protected]
@J0nats thks, bro !
Most helpful comment
hello , fast solution is :
1 - delete node_modules folder
2 - edit package json : react-native version to "55.4" or "55.2" and babel-preset-react-native to "4.0.0"
3 - run npm install or yarn install command
4 - you're done 👍