码迷,mamicode.com
首页 > 移动开发 > 详细

安卓学习第一节--环境搭建及Android Studio 安装

时间:2018-12-24 13:20:19      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:logs   png   mon   files   common   环境   tail   tor   class   

 

技术分享图片

1.安装JDK

 

2.安装AS

安装参考网址 https://www.cnblogs.com/xiadewang/p/7820377.html

 

下载网址:

http://www.android-studio.org/

https://services.gradle.org/distributions/

注意:

1.这个下载很慢,估计不要1个小时也要40分钟

技术分享图片

 

2.Build项目的时候非常的慢,要参考下面的修改(不要开启只线下编译)

技术分享图片

 

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        maven{ url ‘http://maven.aliyun.com/nexus/content/groups/public/‘}
        google()
        jcenter()
    }
    dependencies {
        classpath ‘com.android.tools.build:gradle:3.2.0‘


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven{ url ‘http://maven.aliyun.com/nexus/content/groups/public/‘}
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

  

https://blog.csdn.net/qq_34564357/article/details/78347180

 

3.安装模拟器

可以安装海马玩模拟器

 

安卓学习第一节--环境搭建及Android Studio 安装

标签:logs   png   mon   files   common   环境   tail   tor   class   

原文地址:https://www.cnblogs.com/xinzhyu/p/10168011.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!