一、基本jdk、eclipse环境

二、android sdk

1、下载安装:https://developer.android.com/sdk/installing/index.html?pkg=tools

2、打开SDK Manager.exe。

a、若出现无法连接到google或者android各版本不能完全显示之类的问题。则

首先:进入tools选项卡-->options-->勾选Force https://...sources to be fetched using http://....

然后:进入C:\Windows\System32\drivers\etc找到hosts这个文件点击修改,选择记事本。

注意:不要选择始终使用这样的程序打开这种文件。

在最后一句加上

203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

,意思是开启google不要屏蔽掉。记得保存。

b、必须勾选tools,然后按需勾选需要的android版本,这里勾选2.2以上所有版本。而且我这里遇到问题:不能直接全选自己想要的所有版本,只能先选择最高版本的,开始下载了再勾选其他低版本。

c、创建AVD。

i)tools--> manage AVDs --> new/create --> 填写基本信息,Ok

注:若ok图标不亮:确认相应API的EABI v7a已安装;检查AVD name是否合法;一定要选择一个skin

ii)start AVD

若一直黑屏:选择小一些的分辨率,可能选择的设备分辨率大于电脑分辨率了。

三、打开eclipse,安装ADT插件。

a、help-->install new soft-->add-->name:ADT location:http://dl-ssl.google.com/android/eclipse/

但是出错:Unable to read repository at http://dl-ssl.google.com/android/eclipse/content.xml.(未解决)

所以上http://developer.android.com/sdk/installing/installing-adt.html手动下载了ADT。

add-->单击archive-->选择下载的adt的zip文件,无需解压。-->OK-->next。如果这里还不行,则解压,选择local进行安装。

结果又出错:‘Installing Software' has encountered a problem. An error occurred while collecting items to be installed

又是大老半天,终于:在点next前,一定要取消勾选Contact all updates sites during install to find required software...

这回总算是安装成功了。。不可跨越的墙。

四、Genymotion

1、原因:google的模拟器太慢。。

2、注册账号,下载genymotion:https://www.genymotion.com/#!/download

3、安装。必须有virtualBox,软件里已自带。若本机已安装则按情况选择替换或跳过。

4、打开genymotion,登陆,新建虚拟机。

5、setting-->adb--> use custom Android SDK tool(选择eclipse的SDK路径)--> OK

5、打开虚拟机。

五、第一个程序

1、new-->others-->android --> android application project

若创建项目即红叉,则注意是否选择向下兼容的版本过低,低于你所下载的最低版本。可以最低、最高选一个版本的系统。

2、项目上右键-->run as--> Android Application -->选择新建的Genymotion虚拟机~

3、是不是超级快。。

更多相关文章

  1. android 分辨率大总结
  2. Android各版本适配之8.0
  3. 获取Android当前网络类型(2g、3g、4g、wifi)以及手机型号、版本号
  4. ADT下载地址(含各版本),最新ADT-23.0.6
  5. Android检测版本更新
  6. Android各版本 内外卡真实路径

随机推荐

  1. Android之Fragment的生命周期及使用
  2. Android 官方示例:android-architecture
  3. Zygote进程浅析
  4. Android 开发问题总结 四
  5. 【Android(安卓)界面效果25】android中in
  6. Android中线程的使用方法
  7. Android中launcherMode="singleTask"详解
  8. 《第一行代码Android》学习总结第十三章
  9. Android多媒体框架OpenCore(PacketVideo)介
  10. Android GUI设计工具——DroidDraw