Fedora 12安装Android SDK
2009-11-29 13:47
330 查看
Fedora 12安装Android SDK
1. 下载Android SDK
由于android网站国内不能直接访问, 请通过以下网址下载
http://androidappdocs.appspot.com/index.htmlhttp://dl.google.com/android/android-sdk-windows-1.6_r1.zip
Windows: http://dl.google.com/android/android-sdk-windows-1.6_r1.zip
Mac OS X (intel): http://dl.google.com/android/android-sdk-mac_x86-1.6_r1.zip
Linux (i386): http://dl.google.com/android/android-sdk-linux_x86-1.6_r1.tgz
ADT Plugin for Eclipse 0.9.3: http://dl.google.com/android/ADT-0.9.3.zip
ophone develop :http://www.ophonesdn.com/
http://blog.csdn.net/vagrxie/archive/2009/08/04/4409464.aspx
android developer: http://www.anddev.org/
2. 添加Android SDK
运行android后,在选择Available Packages时遇到错误消息:Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
解决方法是:
创建配置文件: ~/.android/androidtool.cfg,在该文件中添加一行
sdkman.force.http=true
(该方法无效)
打开"Settings" 选项并选中misc section "force https:// ... sources to be fetched using http://..." ,重启android. (点击Save后没有反应,重启后发现该选项并没有选中,无效)
export GDK_NATIVE_WINDOWS=true before running android sdk manager.
It fixes both the save button and the install button for me. (该方法可行)
http://groups.google.com/group/android-developers/browse_thread/thread/63a44163a8d07cd9
3. 为Eclipse安装ADT插件
安装ADT的方法:Installing and Updating ADT遇到的问题:During installation, there's an error about requiring org.eclipse.wst.sse.ui.
完整的解决方法参见http://code.google.com/eclipse/docs/faq.html#wstinstallerror。
下面是我的经验:
The Google Plugin for Eclipse depends on other specific Eclipse components, such as WST. Your installation of Eclipse may not yet include all of them, but they can be easily installed by following these instructions.
Eclipse 3.5 (Galileo)
Select Help > Install New Software...Click the hyperlink for Available Software Sites.
Ensure there is an update site named Galileo. If this is not present, click Add... and enter http://download.eclipse.org/releases/galileo for the Location.(在这一步,添加完Galileo之后,最好能安装一下这个site的可用的关键更新)
Now go through the installation steps; Eclipse should download and install the plugin's dependencies.
完成上面的步骤之后,Google App Engine和 Web Toolkit插件就被安装到了Eclipse。此时你仍然需要按照http://androidappdocs.appspot.com/sdk/eclipse-adt.html所陈述的步骤再安装ADT并配置SDK。
如果按照上述方法仍然无法安装ADT,最好通过System->Administration->Add/Remove Software彻底删除Eclipse,删除$HOME/.eclipse文件夹,更新操作系统,然后重装Eclipse。如果选择自己下载Eclipse,运行时很可能会遇到"JVM terminated. Exit Code=-1"的问题。因此还是建议通过Add/Remove Software或者yum install eclipse安装。重新安装完eclipse,再按照上述步骤先安装GAE和GWT,然后安装ADT。
ADT成功安装后,在Eclipse的Window->Preferences中,可以找到Android这一项:
装完ADT之后就可以按照http://androidappdocs.appspot.com/guide/tutorials/hello-world.html的示例开始体验Android程序了!
相关文章推荐
- fedora12 下安装飞信
- Fedora22 安装VM12教程
- Fedora12下安装NCTUns6.0
- 在Fedora 12上安装WAS 7(Websphere Application Server 7)
- Fedora 12 系统安装
- 在Fedora12下安装VMware7的VMware Tools
- Fedora12 安装Sphinx 2.0.1 beta
- fedora12下安装oracle11客户端
- 关于Fedora12从硬盘安装出现死机的问题
- Linux Fedora12 下,安装SAMBA
- WRF在Fedora12虚拟机上的安装过程
- Fedora17 x64 安装android sdk 出现的问题.
- Fedora 12硬盘安装
- 在RHEL/CentOS 6.4/5.9和Fedora 18-12上安装VirtualBox ...
- 在Virtualbox下安装Fedora 12图形界面不显示问题
- fedora 12 QQ 的安装使用过程(续)
- vm虚拟机安装Fedora12
- 在Fedora 12上安装RealPlayer 11
- 关于Fedora12系统的安装
- Fedora12 Linux安装步骤