orYoffe/create-react-native-web-app

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:

  1. Follow the installation guide
  2. "npm run web" works
  3. "npm run android" results in an error
  4. See error

Expected behavior
Application builds and runs in Android emulator

Screenshots
image

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

@orYoffe Sure thing! I created a repo that you can either clone or follow the instructions in the README