- Follow the instructions from React Native's documentation
- Make 1000% sure the USB cable works for this and not just charging. Not all of them do apparently.
- Execute this with the USB cable connected:
adb kill-server adb tcpip 5555 adb connect <your-android-device-ip-address-or-network-name>:5555
You only need to execute the 2 first steps once and the last one every time your computer boots up
- Open the 'android' folder with Android Studio and let it download and install the gradle dependencies.
- Click the Device Manager icon, go to 'Physical' and make sure your device appears there.
'Pair using Wi-Fi' only works if your Android version is >= 11. Else you have to run
adb connect
from terminal. - Run the project from Android Studio (make sure to have opened the 'android' folder with Android Studio as the project).
- Run
adb reverse tcp:8081 tcp:8081
. - Run
npm start
If you still get the Could not determine the dependencies of null
error, just reload the app with the button in the bottom right corner of the device while the Metro server is running.