Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/xxx/android/local.properties'. Now, Here is what I get when running react-native run-android: FAILURE: Build failed with an exception.Ĭould not determine the dependencies of task ':app:installDebug'. Yes | $ANDROID_HOME/tools/bin/sdkmanager -sdk_root=$ -licenses Mv cmdline-tools/tools/* $ANDROID_HOME/tools/ Mv cmdline-tools/tools/bin/* $ANDROID_HOME/tools/bin/ # Merge bin with bin and tools with tools Unzip commandlinetools-linux-6609375_latest.zip -d cmdline-tools We now need to install the missing sdkManager: source ~/.bashrc This will add the environment variables: echo 'export ANDROID_HOME="/usr/lib/android-sdk"Įxport ANDROID_SDK_ROOT="/usr/lib/android-sdk" Here is how I installed my android sdk to run React Native on my Android phone:Ĭonsidering that Java and adb is already installed: sudo apt update & sudo apt install android-sdk
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |