Android doesn't build
Closed this issue · 7 comments
Describe the bug
Running "npm run android" results in an error
To Reproduce
Steps to reproduce the behavior:
- Follow the installation guide
- "npm run web" works
- "npm run android" results in an error
- See error
Expected behavior
Application builds and runs in Android emulator
Hi @MattGibz ,
did you follow the environment setup instruction of react native for ios and android first or is it the first time you try react native?
https://reactnative.dev/docs/environment-setup
Yes I have react native environment setup. I can successfully run a fresh react native project in Android.
Ok, thanks for opening the issue.
Have you tried running npm run start-clean
and then run npm run android
?
If that doesn't work, can you run react-native info
to include these results here
Thanks for the responses @orYoffe. I ended up implementing it a slightly different way and I have my code working now.
Hi @MattGibz that's great.
Mind sharing what it was? Maybe it's worth sharing for future users