1. 程式人生 > >安卓學習第一節--環境搭建及Android Studio 安裝

安卓學習第一節--環境搭建及Android Studio 安裝

 

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.安裝模擬器

可以安裝海馬玩模擬器