I had an issue in my React-Native project which was working fine earlier but suddenly it stopped working. Whenever I used the command:
react-native run-andro
For me, "rm -rf android/app/build/" worked
In my case, I've forgotten to add Sudo. Fixed as follows,
sudo npx react-native run-android
I think one more simple thing you could have checked, is if previously you ran the project as different role of a user, like in windows if you ran previously the react-native run-android with an administrator role.
My working solution is below, none of the above worked for me:
CD into your project folder and type expo start --android.
Or the long way:
It will install expo on the virtual device and you can test from there
I know it is an old question but any of those solutions did not work for me and maybe there are others like me. I solved my problem running this command before run-android
react-native eject
Remove the file: React Native Project Root Directory and locate android -> app -> build -> intermediates -> signing_config -> debug -> out -> signing-config.json .