У меня возникает проблема, когда я пытаюсь поставить «a», чтобы иметь expo в студии Android.
Проблема сначала была с adb:
Код: Выделить всё
› Opening on Android...
Failed to resolve the Android SDK path. Default install location not found: /home/quentin/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/quentin/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Error: spawn adb ENOENT
Для информации: я использую Windows и работаю в Ubuntu .
Я пытаюсь отредактировать свой файл zshrc, делая это ;
- nano ~/.zshrc
< /li>
Добавить (попробуйте написать еще несколько способов...)
Код: Выделить всё
export ANDROID_HOME="/mnt/c/Users/quent/AppData/Local/Android/Sdk"
export PATH="$ANDROID_HOME/platform-tools:$PATH"
- источник ~/.zshrc
Потом пробую сделать
Код: Выделить всё
sudo apt-get install android-tools-adb
Код: Выделить всё
Logs for your project will appear below. Press Ctrl+C to exit.
› Opening on Android...
Failed to resolve the Android SDK path. Default install location not found: /home/quentin/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/quentin/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/quentin/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
CommandError: No Android connected device found, and no emulators could be started automatically.
Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).
Then follow the instructions here to enable USB debugging:
https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/782 ... k-path-adb
Мобильная версия