首页 > 解决方案 > Expo无法连接到android-studio模拟器(Ubuntu 20.04)

问题描述

当我运行“npm start”然后运行“a”/“sudo expo start --android”时,与 android 模拟器的连接失败。我得到的错误是:

Couldn't start project on Android: Error running adb: No Android connected device found, and no emulators could be started automatically.
Please connect a device or create an emulator (https://docs.expo.io/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.

在尝试调试时,我发现:

标签: react-nativeandroid-studioandroid-emulatorexpoandroid-sdk-tools

解决方案


推荐阅读