首次运行eclipse android时出现的问题——不能下载SDK,HAXM不能下载

不容易安装完,在运行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

解决办法

 

 

 

终于可以运行了!!!



转载于:https://www.cnblogs.com/chu-JJ/p/9215947.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值