简体   繁体   English

在设备上安装应用程序时出现问题-无权限

[英]Problem installing an app on a device - NO PERMISSIONS

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 '??????????' 1-在月食中,我看到带有“ ??????????”的设备 as ID. 作为ID。

2 - with adb device, I get: 2-使用adb设备,我得到:

 List of devices attached 

???????????? ???????????? no permissions 没有权限

I edited the /etc/udev/rules.d/51-android.rules....not sure what else to do? 我编辑了/etc/udev/rules.d/51-android.rules ....不确定要做什么?

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' 3-我将应用复制到SD卡上,并尝试从那里安装它...但是在某个时候安装停止,并且消息是“未安装应用”

Also! 也! The app gets intalled on my friends phone via eclipse? 该应用通过Eclipse在我的朋友手机上安装了?

Can anybody give me a hand with this??? 有人可以帮我吗?

Thanks! 谢谢!

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服务器:
adb kill-server 亚行杀害服务器
adb start-server 亚行启动服务器
adb devices adb设备

If the error still persists, try restarting both your development machine and phone device. 如果错误仍然存​​在,请尝试重新启动开发计算机和电话设备。

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: 如果您使用的是Ubuntu,请尝试通过sudo运行adb:

sudo adb devices sudo adb设备

If you're using another distro either try as root, or use sudo, accordingly. 如果您正在使用其他发行版,请尝试以root用户身份使用,或相应地使用sudo。 (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.) (假设您使用的是Linux,可能使用的是Ubuntu,如果您位于所链接页面上的那部分说明中,但是问题中的信息也会有所帮助。)

Also make sure you're using the correct vendor ID for the device you're trying to use. 另外,请确保您要使用的设备使用正确的供应商ID。 The instructions show 0bb4 as an example only (that will only work for certain HTC devices). 指令仅显示0bb4作为示例 (仅适用于某些HTC设备)。 You can use the lsusb command to check to make sure you're device is detected by the OS, and get the correct ID. 您可以使用lsusb命令检查以确保操作系统检测到您的设备,并获取正确的ID。

lsusb 
Bus 002 Device 100: ID 18d1:4e12 Google Inc. Nexus One Phone (Debug)

absolutely beyond my comprehension - the device got found (recognized) after deselecting the Settings > Applications > Development > USB debugging.... 绝对超出我的理解范围-取消选择设置>应用程序>开发> USB调试后找到(识别)该设备。

:) I signed with relief ... :)我如释重负...

Thank you very much for the enthusiasm and help! 非常感谢您的热情和帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM