关于eclipse安装android开发环境细节

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mwthe/article/details/51313332

最近这几天,购买了一台新电脑,在安装android开发环境的时候,遇到了各种不顺,我也是做了3年android开发了,说起来这个对我还是蛮惭愧的,毕竟是自学,有些东西了解的还不是很全面,接下来说一下吧;


现在我的开发环境:win10,eclipse Indigo Service Release 2,SDK 24.4.1(自动更新升级),ADT 24.0.2,JDK 1.7,安装此配置android开发环境可以完成


SDK随便下载一个,然后配置一下服务代理,地址:mirrors.neusoft.edu.cn,端口:80,自动更新后就是SDK的最新版本了,随之ADT也必须升级,否则开发不了项目;


网上已经有很多在线安装ADT的方法,大多是修改hosts文件:

74.125.237.1    dl-ssl.google.com
203.208.46.146  dl.google.com
203.208.46.146  dl-ssl.google.com

经过我测试,这个压根没用,可能是我网络问题吧,我还是离线安装的;当然也试过 试用版的VPN,发现也够呛;不够还是有点收获的,经google网站进入android官网,了解了一些东西,部分内容如下:


ADT Plugin Release Notes

See also
Installing the Eclipse Plugin

Android Development Tools (ADT) is a plugin for the Eclipse IDE that extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add packages based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) .apk files in order to distribute your application.

Note: If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see Migrating to Android Studio.

Note that before you can install or use ADT, you must have compatible versions of both the Eclipse IDE and the Android SDK installed. For details, make sure to read Installing the Eclipse Plugin.

For information about the features provided by the ADT plugin, such as code editor features, SDK tool integration, and the graphical layout editor (for drag-and-drop layout editing), see the Android Developer Tools document.

Revisions


The sections below provide notes about successive releases of the ADT Plugin, as denoted by revision number.

For a summary of all known issues in ADT, see http://tools.android.com/knownissues.

ADT 24.0.2(这就是ADT使用时要求的其他配置)
Java 7 or higher is required if you are targeting Android 5.0 and higher.
Java 1.6 or higher is required if you are targeting other releases.
Eclipse Indigo (Version 3.7.2) or higher is required.
This version of ADT is designed for use with SDK Tools r24.1.2. If you haven't already installed SDK Tools r24.1.2 into your SDK, use the Android SDK Manager to do so.

这也就是说明,android往后对eclipse的插件支持会弱于Android Studio,毕竟Android Studio才是官方的IDE,在某些地方会优于eclipse,现在的新的SDK和ADT版本彼此都不在对应了,大家就按照新的规律来吧,更新后的版本,只要在大的方面一直几乎都是可以了,比如sdk 24.x.x,对应的adt也最好也在 24 以上;
另外注意的一点,升级后的sdk需要jdk也高点,现在大多系统都是64的了,大家下载的时候也注意点,统一64位,

资源下载(360的网盘):https://yunpan.cn/cP5HzcPjiHZgZ  访问密码 15ef
资源内容包括:SDK安装版22.3(随后自动升级即可),ADT-24.0.2;jdk1.7绿色版,eclipse indigo最新版;这些资源都是64位的

20160501

猜你喜欢

转载自blog.csdn.net/mwthe/article/details/51313332