linux eclipse android environment configure

738 查看

me use default JDK sudo apt-get install openjdk-7-jdk

use IDE ,it is
eclipse+android ,download address is:http://developer.android.com/sdk/index.html#linux-bundle

unpack you download file,move it to /opt/eclipse,eclipse this name ,you are defined

add platform-tools and tools tow dir to PATH

missing lib sudo apt-get install lib32ncurses5 lib32stdc++6 sudo apt-get install ia32-libs

on real phone test ,

lsusb 记录下你的设备号 例如:Bus 003 Device 003: ID 1ebf:7028 1ebf就是设备号

新建一个文件在/etc/udev/rules.d/50-android.rules

内容如下:

SUBSYSTEMS=="usb",ATTRS{idVendor}=="1ebf",SYMLINK+="android_adb",OWNER="ubuntu"

ATTRS{idVendor}填写设备ID,OWNER 是你当前的用户名

修改这个文件的权限 sudo chmod +rwx

启动服务

udo service udev restart

关闭adb进程,cd到adt工具的platform-tools目录下,

sudo ./adb kill-server
sudo ./adb devices