设置开发设备(????????????没有权限) [英] set up device for development (???????????? no permissions)

查看:115
本文介绍了设置开发设备(????????????没有权限)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Samsung galaxy nexus手机( Android 4.0 平台).

I am using a Samsung galaxy nexus phone (Android 4.0 platform) .

我正在Ubuntu Linux操作系统上开发Android应用程序.我想直接在三星手持设备上运行我的应用程序,因此我执行了以下设置步骤:

I am developing Android app on Ubuntu linux OS. I would like to run my application directly on the Samsung handset device, so I performed the following setup steps:

  1. 在我的项目AndroidManifest.xml文件中,将android:debuggable="true"添加到<application>元素

  1. in my project AndroidManifest.xml file, added android:debuggable="true" to the <application> element

在设备上的设置>安全性中启用的未知来源

在设备上的设置>开发者选项中启用了 USB调试

在我的计算机上,创建了具有以下内容的/etc/udev/rules.d/51-android.rules文件:

On my computer, created the /etc/udev/rules.d/51-android.rules file with the following content:

SUBSYSTEM=="usb", ATTR{idVendor}=="04E8", MODE="0666", GROUP="plugdev" 

  • 在我的计算机上,运行chmod a+r /etc/udev/rules.d/51-android.rules命令

    然后,在我的计算机上,打开一个终端并执行adb devices命令,我得到了:

    Then, on my computer I opened a terminal and executed the adb devices command, I got:

    List of devices attached 
    ????????????    no permissions
    

    由于我没有看到设备,只有[c6>],所以我运行以下命令:

    Since I did not see my device but only ???????????? no permissions, I then run the following commands:

     adb kill-server
     adb start-server
     adb devices
    

    但我仍然得到:

    List of devices attached 
    ????????????    no permissions
    

    为什么?我想念什么?

    推荐答案

    对我有用的是再次杀死并启动adb服务器.在Linux上:先按sudo adb kill-server,再按sudo adb start-server.然后它将检测出几乎所有开箱即用的设备.

    What works for me is to kill and start the adb server again. On linux: sudo adb kill-server and then sudo adb start-server. Then it will detect nearly every device out of the box.

    这篇关于设置开发设备(????????????没有权限)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆