在设备上安装应用程序时出现问题 - 无权限
我正在尝试在我的设备上安装我的测试应用程序,但我没有去那里。
我还按照此处所述准备了我的手机:此处
1 - 在 eclipse 中我查看带有“?????????”的设备作为身份证。
2 - 使用 adb 设备,我得到:
List of devices attached
????????????没有权限
我编辑了 /etc/udev/rules.d/51-android.rules....不知道还能做什么?
3 - 我将应用程序复制到我的 SD 卡并尝试从那里安装它...但安装停止了,并且消息是“应用程序未安装”
!该应用程序通过 eclipse 安装在我朋友的手机上吗?
有人可以帮我解决这个问题吗???
谢谢!
I'm trying to install my test app on my device, but I does not go there.
I've also prepared my phones as described here: here
1 - In eclipse I see the device with '??????????' as ID.
2 - with adb device, I get:
List of devices attached
???????????? no permissions
I edited the /etc/udev/rules.d/51-android.rules....not sure what else to do?
3 - I copies the app to my SD card and tried to installed it from there ... but at a point the installation stopped and the message was 'Application not installed'
Also! The app gets intalled on my friends phone via eclipse?
Can anybody give me a hand with this???
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
确保您的计算机正确连接到电话设备。
如果错误仍然存在,您可以尝试使用以下命令重新启动 adb 服务器:
adb 终止服务器
adb 启动服务器
adb devices
如果错误仍然存在,请尝试重新启动开发计算机和电话设备。
Ensure your machine is connected to the Phone device correctly..
If the error persists, you can try restarting the adb server, using following commands:
adb kill-server
adb start-server
adb devices
If the error still persists, try restarting both your development machine and phone device.
我以前见过当您运行的用户没有权限时。如果您使用的是 Ubuntu,请尝试通过 sudo 运行 adb:
如果您使用其他发行版,请尝试以 root 身份操作,或相应地使用 sudo。 (假设您使用的是 Linux,可能是 Ubuntu,如果您处于链接页面上的说明部分,但问题中的信息也会有所帮助。)
还要确保您使用的是正确的供应商您尝试使用的设备的 ID。这些说明仅将 0bb4 作为示例(仅适用于某些 HTC 设备)。您可以使用lsusb命令进行检查以确保操作系统检测到您的设备,并获取正确的ID。
I've seen that before when the user you are running as did not have permissions. If you're using Ubuntu try running adb via sudo:
If you're using another distro either try as root, or use sudo, accordingly. (Assuming you're using Linux, and probably Ubuntu, if you're in that part of the instructions on the page you linked -- but that info in the question would help too.)
Also make sure you're using the correct vendor ID for the device you're trying to use. The instructions show 0bb4 as an example only (that will only work for certain HTC devices). You can use the lsusb command to check to make sure you're device is detected by the OS, and get the correct ID.
绝对超出我的理解 - 取消选择“设置”>“后,设备被发现(识别)”应用领域>>发展> USB调试....
:)我松了一口气...
非常感谢您的热情和帮助!
absolutely beyond my comprehension - the device got found (recognized) after deselecting the Settings > Applications > Development > USB debugging....
:) I signed with relief ...
Thank you very much for the enthusiasm and help!