1. Ubuntu Lucid(10.04)上安装jdk及eclipse
sudo aptitude install sun-Java6-jre sun-java6-plugin sun-java6-fonts
sudo aptitude install eclipse-platform eclipse-plugin-cvs eclipse-jdt
安置后测试:java -version,输进雷同的效果:
java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK Server VM (build 14.0-b16, mixed mode)
2.install ADT
运转Eclipse, 面打 Help > Install New Software > Available Software。点 打“Add ..”按钮正在location输中计址https://dl-ssl.google.com/android/eclipse/(name项不论),面OK. 那时您将会望到Developer tools出如今列表中, 睁开选中目次下的"Android DDMS"、;"Android Development Tools"两项。 面打Next按钮便开端安置了. 等...
3.install android SDK
download file:android-sdk_r05-linux_86.tgz 能够自那里下载:androidappdocs.appspot.com/sdk/index.html [部门地域必要不安于室]
解紧缩开释到/home/yourhome/,人释搁的目次是:/home/yk3372/android-sdk-linux_86,然后自
eclipse >windows> prefences > Android > SDK Location指订android sdk地点的目次便可
在Ubuntu下安装Eclipse的PDT插件的时候,总是出现下面的错误:
An error occurred while installing the items session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null –> [R]org.eclipse.cvs 1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction). The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.
而且接下来发现,其他插件也是这个错误。后来找到了一个解决办法:
sudo apt-get install eclipse-pde
然后再去安装插件,搞定!