不容易安装完,在运行eclipse android时又出现了很多问题
1、SDK 不能下载,Google了半天终于找到了能解决的
Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused Fetched Add-ons List successfully Fetching URL: <a href="http://dl-ssl.google.com/android/repository/repository-6.xmlFailed">http://dl-ssl.google.com/android/repository/repository-6.xml Failed</a> to fetch URL <a href="http://dl-ssl.google.com/android/repository/repository-6.xml">http://dl-ssl.google.com/android/repository/repository-6.xml</a>, reason: Connection to http://dl-ssl.google.com refused Done loading packages.
解决办法:镜像
打开 android SDK manager Tools-->Options 设置
这里的镜像挺多的 https://www.jianshu.com/p/53080a8cbc95
然后改hosts文件
Windows在C:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件。 打开文件后添加以下内容。
#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网,现在好像不翻也可以打开
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
2、在 android SDK manager中不能 下载HAXM
解决办法
手动下载安装 Intel HAXM ---> https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm
然后重启eclipse就可以了~
3、在启动模拟器时发生错误,不能启动
查看details 发现 hw.dPad:no
解决办法
在安装模拟器的目录下(ps:路径可以在details中查看)
xxx.avd目录---->config文件
将hw.dPad=no 改为 hw.dPad=yes
保存 重启eclipse
emmmm
还有个问题
eclipse报错 Unable to build: the file dx.jar was not loaded from the SDK folder
解决办法
终于可以运行了!!!