参考博客:https://blog.csdn.net/Y74364/article/details/96121530
目录
报错:read time out(Android Studio首次安装出现Read time out解决办法)
一、安装
下载Android Studio 网址:
http://www.android-studio.org/
https://www.androiddevtools.cn/
1. 进入下载的网站,选择合适的版本进行下载,我下载的版本如下:
2. 下载好安装包之后,双击运行,双击后可能会等待较长的时间,出现以下界面,点击next
点击next
更改AndroidStudio的安装地址后,点击next。默认安装在C盘,我将其安装到了F盘
点击install
点击next
点击finish
点击ok
点击cancle
点击next
点击next
选择主题颜色,点击next
开始走进度条
点击finish
二、创建一个新的项目
1. 点击新建一个项目:
2. 选择Empty Activity,点击next
3. 开发语言选择Java,点击finish
报错:read time out(Android Studio首次安装出现Read time out解决办法)
方法一:手动下载gradle
这个方法我尝试后依旧报错Read time out,但还是记录在这里
1. 进入 http://services.gradle.org/distributions/ 下载对应版本的gradle
gradle的版本查看方法:
鼠标移动到这里,发现是5.4.1-all.zip,下载对应的
2. 将下载的压缩包直接放到C:\Users\iwaed\.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx(最后那个文件夹会有差异)
方法二:更改build.gradle内的内容,亲测可用
打开build.gradle,在google()和jcenter()之间加上一句话:
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/'}
需要更改两处:
然后点击下图红圈图标,sync projects with gradle files
等待一会儿,成功。
三、新建Android Studio模拟器
1.选择Open AVD Manager
2. 点击右下角的 + create virtual device……
3. 选择一个,然后点击next
4. 选择一个版本,点击download,等进度条跑完,点击finish
5.然后选则对应的模拟器,点击绿色的三角形
报错AXM is required to run this AVD.
VT-x is disabled in BIOS.
Enable VT-x in your BIOS security settings (refer to documentation for your computer).
报错:AXM is required to run this AVD.VT-x is disabled in BIOS.Enable VT-x in your BIOS security settings (refer to documentation for your computer).联想电脑解决办法
重启电脑,开机的时候按F2,进入到BIOS界面,Configuration -> Intel Virtual Technology,按enter将disable更改为enable,然后按下F10保存
6.开机后再次尝试,可以正常运行虚拟机。
Android Studio提示Your anti-virus program might be impacting your build performance. Android Studio checked the following directories:……解决办法
报错信息: Your anti-virus program might be impacting your build performance. Android Studio checked the following directories:
C:\Users\iwaed\.AndroidStudio3.5\system
C:\Users\iwaed\.gradle
F:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk
D:\AndroidStudioProjects\teat01
解决办法: 把上面提到的文件夹在杀毒软件中添加信任即可