zoukankan      html  css  js  c++  java
  • Ubuntu Android adb调试无法识别设备 -- List of devices attached ???????????? no permissions

    在Ubuntu下做Android开发, 使用adb devices调试的时候出现在面的错误:


    这个问题之前就出现过的,突然就忘了,Mark一下。在网上找了一下,基本上是一些比较麻烦的办法,但是在我的记忆中这个问题应该是很快就能解决的问题。跟着异常的提示想了一下

    $ adb devices
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    List of devices attached
    ????????????    no permissions

    红色背景的部分应该是说明权限不够,于是我尝试了一下下面的方法:

    1.先杀掉当前的adb服务

    $ adb kill-server

    2. 使用管理员权限开启服务

    1 lennon@lennon-PC:/opt/adt/sdk/platform-tools$ sudo adb start-server
    2 * daemon not running. starting it now on port 5037 *
    3 * daemon started successfully *

    3. 查看所有设备

    1 lennon@lennon-PC:/opt/adt/sdk/platform-tools$ adb devices
    2 List of devices attached 
    3 NX403A    device

    一切都是如此的简单!

    另外附上网上长见的一些稍微麻烦的方法:

    1. http://peirenlei.iteye.com/blog/1564686

  • 相关阅读:
    bzoj 4007
    bzoj 2190
    bzoj 2186
    bzoj 2005
    bzoj 2721
    bzoj 1951
    CF919F
    CF1005F
    CF1019C
    bitset用法详解
  • 原文地址:https://www.cnblogs.com/csulennon/p/adb.html
Copyright © 2011-2022 走看看