Android开发过程中问题记录

1.启动eclipse出现:An error occurred while automatically activating bundle com.android.ide.eclipse.adt

解决方式:命令行到eclipse目录下运行exlipse.exe -clean

2.Android Studio(版本为1.5)出现:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

解决方式:尝试使用VPN解决无果,在gradle/wrapper/gradle-wrapper.properties文件中有:distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip,观察Android Studio gradle sync的时候每次都是在尝试下载gradle的时候出现上述问题,所以干脆直接单独下载gradle-2.4-all.zip文件(http://services.gradle.org/distributions),并把zip文件放到C:\Users\用户名.gradle\wrapper\dists\gradle-2.4-all\6r4uqcc6ovnq6ac6s0txzcpc0文件夹中,重新gradle sync即可解决问题。