Android环境搭建时遇到的问题总结

环境: Ubuntu 11.10 x64: 
1. 安装 
/opt/eclipse/android-sdk-linux/platform-tools/adb: error while loading shared libraries:libncurses.so.5: wrong ELF class: ELFCLASS64 
解决方案: apt-get install ia32-libs 
2. Eclipse不能安装adt插件 
打开eclipse: 
windows->preferences->Install/Update->Avai... 
选中或添加以下两个网址, 
         GEF Update Site :  http://download.eclipse.org/tools/gef/updates/releases/ 
         galileo  :  http://download.eclipse.org/releases/galileo 
进入help->Install new software,先选择GEF进行升级,(应该只升级对应版本即可,不过我把所有的都选了) 
                                                         再升级WST,这个在galileo的最后面,耐心找一下吧,而且galileo加载也会很慢,稍等即可。 

期间按照提示,选择重启或OK,应该会很顺利地。 
如果GEF update Site打不开,直接去 http://www.eclipse.org/galileo/projects.php 查找对应的网址 
Eclipse的版本是3.5.2,配置Android的开发环境时遇到问题…… 
按照Android官方文档一步步安装,到了安装Eclipse的ADT插件时,提示“requires 'org.eclipse.gef 0.0.0' but it could not be found”,找了很久终于解决问题: 
缺少GEF,Eclipse's Graphic Editing Framework,下面是这个插件的地址: 
http://download.eclipse.org/tools/gef/updates/releases/ 
在Eclipse的菜单栏Help->Install New Software中添加这一项,然后选择对应Eclipse版本的选项安装好即可。 
原文地址在此(感谢这位哥们儿,贡献一个链接) 
http://tewson.com/content/orgeclipsegef-000-required-installing-android-development-tools-eclipse-351 
另外在安装ADT时还需要添加以下站点以便自动安装依赖的组件: 
Eclipse GEF      - http://download.eclipse.org/tools/gef/updates/releases/ 
Eclipse EMF      - http://download.eclipse.org/modeling/emf/updates/releases/ 
Eclipse GMF      - http://download.eclipse.org/modeling/gmf/updates/releases 
Eclipse Webtools - http://download.eclipse.org/webtools/updates/ 

Google eclipse Plugin - http://dl.google.com/eclipse/plugin/3.5 
3. Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder. 
解决方案: If you look in the "Android SDK Manager" in the "Android 4.0 (API 14)" section you'll see a few packages. 
One of these is named "ARM EABI v7a System Image" 
This is what you need to download in order to create an android 4.0 virtual device. 

转载于:https://www.cnblogs.com/lullabyus/archive/2012/01/15/2322871.html

上一篇:maven 私服的setting.xml配置


下一篇:6 发布个人项目到私服