收到错误“未找到设备”从 Android 模拟器运行 apk 文件时

发布于 2024-09-12 19:13:52 字数 73 浏览 3 评论 0原文

我尝试从命令提示符安装 apk 文件,但收到错误“找不到设备”。

I am trying to install an apk file from command prompt but getting an error "Device not found".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

再见回来 2024-09-19 19:13:52

首先尝试“adb devices”并查看已连接的设备列表。
如果电话未出现,请执行以下操作:
“adb Kill-server”等待几秒钟,然后“adb start-server”
如果手机出现在列表中,但其名称为 ??????,则说明您存在权限问题。
如果手机显示正常,则您的命令可能存在问题。然后检查以下内容:

您的手机是否处于调试模式?
您是否已将可调试标记添加到应用程序的清单中?
手机是否已通过电缆正确连接到计算机?
您是否正确完成了此页面上的所有操作。

try "adb devices" first and see the list of devices connected.
If the phone does not appear, do this :
"adb kill-server" wait a few seconds then "adb start-server"
If the phone appears in the list but its name is ?????, you have an issue of permission.
If the phone appears fine, you might have an issue in your command. Then check the following :

Is your phone in debugging mode?
Have you added the debuggable tag to the manifest of your application?
is the phone properly connected with the cable to your computer?
Have you done everything correctly on this page.

秋凉 2024-09-19 19:13:52

首先打开模拟器,然后转到提示符并输入:

adb install yourfile

Fist turn on the emulator and then go to prompt and type:

adb install yourfile
橘虞初梦 2024-09-19 19:13:52

尝试 adb 设备
如果您在列表中没有看到您的模拟器设备(尽管它已打开),则您可能必须启动服务器。执行adb启动服务器。
然后,一旦服务器再次启动,请使用 adb devices 命令检查设备。您的设备将在列表中
现在尝试安装该应用程序。安装后,该应用程序将在菜单中可用。

Try adb devices
If you don't see your simulator device in the list although its on, you probably have to start the server. Execute adb start-server.
Then once the server is up again check for device by using adb devices command. Your device will be in the list
Now try to install the application. After installatio the application will be available in the menu.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文