Android studio安装配置常见问题及其解决方案
Android studio安装配置常见问题及其解决方案 Android studio 是目前android公司主推的一款开发工具,相比较以前eclipse,它自己内部就集成了SDK等,方便开发。这几天杰瑞教育学员也尝试从官网下载了一个android studio进行开发,但是在安装以及配置过程中遇到了几个问题,接下来与大家分享一下:
方法/步骤
1. 问题一
在安装的时候最好是按照它原来的路径安装,不要修改路径。我修改了路径后出现了一些问题,没有解决。
所以提醒大家,在安装的时候最好不要修改安装路径哦~
2. 问题二
'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.
在打开的过程中报出以上错误,tools包没有找到,解决方法是在设置环境变量中的JAVA HOME时需要注意,在最后需要以\结尾。如图:
3. 问题三
一直停留在fetching Android sdk compoment information界面
4. 出现该界面是一直在获得android sdk的信息。
解决方法:
1)找到安装的Android Studio目录下的bin目录。找到idea.properties文件,用文本编辑器打开。 2)在idea.properties文件末尾添加一行: disable.android.first.run=true ,然后保存文件。 3)关闭Android Studio后重新启动,便可进入界面。
5.
问题四 Failed to fetch URL http://doc.guandang.net/android/repository/repository.xml, reason: Connection timed out: connect
连接谷歌网络超时
解决方法:
打开SDK目录 安装时默认
。地址打为开C:\Users\Administrator\AppData\Local\Android\sdk
SDKManager,选择Tools下的Options,将如图所示选项勾上。也就是others中第一个选项
6. 6
然后打开C:\WINDOWS\system32\drivers\etc中的hosts文件,在最后一行添加如下内容:
203.208.46.146 http://doc.guandang.net
74.125.113.121 http://doc.guandang.net
203.208.46.146 http://doc.guandang.net
203.208.46.146 http://doc.guandang.net
我们在打开的过程中遇到了如上四个问题,解决之后就打开了android studio界面,如果大家还有其他问题,也欢迎大家和我们进行交流。
8:01:10 Gradle sync started
8:01:39 Gradle sync failed: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://doc.guandang.net/docs/2.4/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Consult IDE log for more details (Help | Show Log)
8:01:56 Gradle sync started
8:01:57 Gradle sync failed: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://doc.guandang.net/docs/2.4/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Consult IDE log for more details (Help | Show Log)
8:06:22 EmptyThrowable: Failed to fetch URL https://http://doc.guandang.net/android/repository/addons_list-2.xml, reason: connect timed out
8:10:00 EmptyThrowable: Failed to fetch URL https://http://doc.guandang.net/android/repository/addons_list-2.xml, reason: connect timed out
经google发现,原来android studio
是通过gradle对项目配置的,而系统中没有对android studio 的默认配置,就像Eclipse中的eclipse.ini文件。
解决方法:
在操作系统当前用户的.gradle文件夹下:C:\Users\Administrator\.gradle 设置
gradle.properties,若无就新增。
在文件中添加如下配置信息:
[plain] view plaincopy
1. org.gradle.jvmargs=-Xmx512m
…… 此处隐藏:1201字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [专业资料]《蜜蜂之家》教学反思
- [专业资料]过去分词作定语和表语1
- [专业资料]苏州工业园区住房公积金贷款申请表
- [专业资料]保安管理制度及处罚条例细则
- [专业资料]2018年中国工程咨询市场发展现状调研及
- [专业资料]2015年电大本科《学前教育科研方法》期
- [专业资料]数字信号处理实验 matlab版 离散傅里叶
- [专业资料]“十三五”重点项目-虎杖白藜芦醇及功
- [专业资料]2015-2020年中国竹木工艺市场需求及投
- [专业资料]国际贸易理论与实务作业五:理论案例分
- [专业资料]财政部修订发布事业单位会计制度
- [专业资料]BCA蛋白浓度测定试剂盒(增强型)
- [专业资料]工程进度总计划横道图模板(通用版)
- [专业资料]七年级地理同步练习(天气与气候)
- [专业资料]X光安检机介绍火灾自动报警系统的组成
- [专业资料]衢州市人民政府办公室关于印发衢州市区
- [专业资料]经济全球化及其影响[1]
- [专业资料]质粒DNA限制性酶切图谱分析
- [专业资料]国家安全人民防线工作“六项”制度
- [专业资料]劳动力投入计划及保证措施
- 电子账册联网监管培训手册
- 人教版语文七年级上第1课《在山的那边
- 对我区担保行业发展现状的思考与建议
- 平面四边形网格自动生成方法研究
- 2016年党课学习心得体会范文
- 如何设置电脑定时关机
- 全球最美人妖排行榜新鲜出炉
- 社会实践调查报告及问卷
- Visual Basic习题集
- 《鱼我所欲也》课件2
- 浙江省会计从业资格考试试卷
- 全遥控数字音量控制的D 类功率放大器资
- 鞍钢宪法与后福特主义
- 电表的改装与校准实验报告(1)
- 2014年高考理科数学真题解析分类汇编:
- Windows 7 AIK 的使用
- 风电场全场停电事故应急处置方案
- 化工原理选填题题库(下)
- 关于产学研合作教育模式的学习与思考
- 西安先锋公馆项目前期定位报告




