If you Have a issue while running the React native app "failed to install the app"

you just have to go into your project and type there

cd android

./gradlew clean

cd..

npx react-native start or npx react-native run-android

This will manage all other errors and then you will be able to Write code in react native..