解决adb command not found以及sdk环境配置
来源:互联网 发布:java mvc框架下载架包 编辑:程序博客网 时间:2024/05/16 16:15
装完ubuntu系统之后,可能通常都是去配置JDK已经一些其他开发环境
我老是忘了去配置SDK,以至于在使用adb命令的时候报出一些错误。现在就记录一下如何解决这个问题,以方便我自己查阅。
在执行adb root的时候遇到一个问题:adb :command not found
原因及解决方案:
重装完ubuntu没有配置sdk环境,需进行配置。
vim .bashrc
然后添加下面内容:
export ANDROID_HOME=/home/jerikc/tools/android/android-sdk-linuxexport PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
然后运行
. .bashrc
解决error: insufficient permissions for device
sudo -s//或者在执行下列命令之前加上soduroot@android-ubuntu:platform-tools# adb kill-serverroot@android-ubuntu:platform-tools# adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
root@android-ubuntu:platform-tools# exit
我的环境:
OS:Ubuntu 12.10 & MIUI V5
手机:米1
android开发真机调试时,运行sudo ./adb devices 时,若有如下输出:
List of devices attached
???????????? no permissions
解决办法:
- lsusb
以下是我的输出(当前连的是小米手机)
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 062a:0000 Creative Labs Optical mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 18d1:9025 Google Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- 注意上面输出的蓝色一行:
- 创建rules文件
- 在末尾增加文件内容:
- 保存后给予权限:
sudo chmod a+rx/etc/udev/rules.d/51-android.rules
- sudo /etc/init.d/udev restart 或者 sudo restartudev
- sudo ./adb kill-server
- sudo ./adb start-server
- sudo ./adb devices
- 解决adb command not found以及sdk环境配置
- mac下adb环境变量的配置以及command not found的解决
- MAC 下Command not found以及环境配置问题
- command not found: adb
- adb command not found
- adb command not found
- 解决Mac上adb: command not found问题
- 解决Mac上adb: command not found问题
- 解决Mac上adb: command not found问题
- 解决Mac上adb: command not found问题
- 解决Mac上adb: command not found问题
- 解决Mac上adb: command not found问题
- zsh:Command not found : adb
- Mac adb: command not found
- adb command not found mac
- Mac adb command not found
- lsb_release: command not found 解决
- 解决g++:command not found
- Oracle12c使用初体验
- Android使用json对中文进行编码 使用php接收时进行解码
- 下载android slim源码
- HDU 3694 Fermat Point in Quadrangle (数学-费马点)
- POJ 1318
- 解决adb command not found以及sdk环境配置
- 一步步学会使用SeaJS 2.0
- jquery $(this)和this的区别
- seajs学习心得和新产品福利
- jquery判断RadioButtonList和RadioButton是否有选中项的例子
- Jquery判断$("#id")获取的对象是否存在的方法
- jquery特效 table鼠标滑过变色的实现代码
- stripslashes和addslashes的区别
- 有趣的sql语句