1.各种jdk配置,不多说
2.下载sdk,采用sdk+eclipse的方式,直接的adt bundle很多android plantform无法下载
3.eclipse中安装adt:softupdate配置如下:
android :http://dl-ssl.google.com/android/eclipse
安装最新版的adt。直接采用adt bundle绑定最新的sdk是不能成功的,因为版本问题
4.在eclipse中做各种启动优化配置,提高速度
6.在eclipse中建立以android项目,会发现R.java文件无法创建
7.在项目上右键android toos >> fix projest ... 会发现报sdk下少一个文件,各种查资料,原因是由于sdk只支持32位的,所以在64位下运行需要添加32的支持。
网上各种说 运行 sudo apt-get install ia32-libs 即可,但是12.04中运行会报错,如下:
网上各种找,各种装
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
如果无法获取软件列表的话,可以添加列表源头,具体参考http://blog.163.com/lee_super@126/blog/static/106097930201282371134373/
8.重启eclipse,然后重新build,可以生成R文件,项目可以运行了
参考文档:
http://www.2cto.com/os/201210/159883.html
http://www.th7.cn/system/lin/201406/59619.shtml