在虚拟机上Ubuntu系统里安装ADT开发工具,配置好环境后导入Android工程报错:
找不到Adb命令:
ubuntu 12.04 64位设置兼容32位的实现
REF:http://www.2cto.com/os/201210/159883.html
My configure is as follows:
步骤如下:
1. **Newwork setting:如果是公司里,设置上网代理
sudo gedit etc/apt/apt.conf
打开后将如下命令粘贴上去:
Acquire::http::proxy "http://上网用户名:上网密码(里面不能有@字符)@dl-proxy.neusoft.com:8080/";
保存关闭,重新开Teiminal
2. 执行下面的命令:
sudo apt-get install lib32z1
sudo apt-get install lib32ncurses5
sudo apt-get install lib32bz2-1.0
如果此时ADT的工程还是有错误,执行下面步骤:
3.sudo echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >/etc/apt/ sources.list.d/ia32-libs-raring.list
sudo apt-get update
4. sudo apt-get install ia32-libs
5. 下载依赖包
sudo apt-get install lib32z1
sudo apt-get install lib32ncurses5
sudo apt-get install lib32bz2-1.0
6. sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
sudo apt-get install g++-multilib
7. finally OK
草稿,待修正