andriod开发

搭建环境篇
官网下载最新andriod studio, 无脑安装。
建立helloworld项目。
注意改掉buildscript脚本

buildscript {

    repositories {
        jcenter{
            url 'http://jcenter.bintray.com'//原来这里是jcenter(),需要改成这个样子
        }
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'


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

allprojects {
    repositories {
        jcenter{
            url 'http://jcenter.bintray.com'
        }
        google()
    }
}

猜你喜欢

转载自blog.csdn.net/jxhaha/article/details/82728892