React Native:无法在 Genymotion 上模拟
React Native: Unable to emulate on Genymotion
我按照命令在 genymotion 上模拟我的 React 本机应用程序,但出现错误。
expo start -a
这里是错误。
This computer is not authorized to debug the device. Please 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.
它似乎无法找到您的 adb 路径。您必须安装 adb 并在 genymotion 和系统中设置 adb 路径。
打开 genymotion 并转到“设置”>“ADB”选项卡,select "Use custom Android SDK tools",然后将其指向您的 Android SDK 目录。然后请确保 android sdk 工具在您的系统路径中。
set PATH=%PATH%;path\to\android\Sdk\platform-tools
实例windows,androidsdk tools目录路径取决于安装目录:
set PATH=%PATH%;C:\Users\<username>\AppData\Local\Android\Sdk\platform-tools
或
set PATH=%PATH%;C:\Program Files\android-sdk-windows\platform-tools
我按照命令在 genymotion 上模拟我的 React 本机应用程序,但出现错误。
expo start -a
这里是错误。
This computer is not authorized to debug the device. Please 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.
它似乎无法找到您的 adb 路径。您必须安装 adb 并在 genymotion 和系统中设置 adb 路径。
打开 genymotion 并转到“设置”>“ADB”选项卡,select "Use custom Android SDK tools",然后将其指向您的 Android SDK 目录。然后请确保 android sdk 工具在您的系统路径中。
set PATH=%PATH%;path\to\android\Sdk\platform-tools
实例windows,androidsdk tools目录路径取决于安装目录:
set PATH=%PATH%;C:\Users\<username>\AppData\Local\Android\Sdk\platform-tools
或
set PATH=%PATH%;C:\Program Files\android-sdk-windows\platform-tools