2018升级Android Studio 3.0填坑报告

看了很多人写的博客,想想我也该写点东西给大家分享。

从Android Studio 2.3.2升级到Android Studio 3.0这个过程,折磨我两次,每次浪费很多时间,在此将经验分享给遇到此类的朋友们,不在再走和我同样的路了。

2018年春节过后的第一天,打开Android Studio 中文社区:

就是它http://www.android-studio.org/,下载Android Studio 3.0,不幸的是不像去年那样直接可以下载,展示给我的网页无法访问,相当郁闷,看来是和谐了,于是我就那个,你懂的......,此时应该休息会,待下载完成吧!

好了软件下载成功,准备安装吧!

安装完软件我new project,结果就它了


别的不多说,直接上代码吧

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.+'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:0.4'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
}

这样居然搞定了!

有要改了它们两个.OK

implementation 'com.android.support:appcompat-v7:26.+'
androidTestImplementation 'com.android.support.test:runner:0.4'