- 21 > JRE Version >= 17
- Android API 34, Extension Level 3 Platform
- Node Package Manager
npm uninstall -g react-native-cli
npm uninstall -g react-native
npm install -g react-native-cli
npm install -g react-native
Install all necessary SDKs from https://reactnative.dev/docs/environment-setup
cd frontend
cd android
- Open
gradle.properties
and add your old JDK version pathorg.gradle.java.home=C:\\Program Files\\Java\\jdk-17.0.1
./gradlew clean
cd ..
- Start the Google Pixel Emulator
cd frontend
npm i
npx react-native start
- Press
a
to run android simulator (wait 15s)
- Add your IP address to /android/app/src/.../react_native_config.xml
Then run a few commands: cd /android ./gradlew clean cd react-native run-android
-
Cmd + M >> Settings >> Debug server host & port for device >> add your IP address and 8081 (?)
-
react-native run-android --port=8088
-
adb reverse tcp:8081 tcp:8081