第七下载是国内最新、最齐、最安全的软件下载基地!

关于我们最近更新热门排行

首页 入库 软件 游戏 安卓 MAC 文章 专题

新闻资讯软件应用软件教程 电脑百科编程开发操作系统游戏娱乐游戏攻略手机相关游戏视频
当前位置:首页 ›› 软件教程 ›› 如何更新Android Studio 3.0正式版

如何更新Android Studio 3.0正式版

2017-10-30 17:27   作者:佚名   来源:本站整理   浏览:3784   评论:2  

Android Studio 3.0包含了三大主要功能:一套全新的应用性能分析工具,用于快速诊断性能问题;支持Kotlin编程语言;加快大规模应用项目的 Gradle 构建速度。如何更新Android Studio 3.0金丝雀版小编下面将做详细的介绍!

Android Studio 3.0金丝雀版安装教程:

1.获取自己电脑上安装的Android Studio 的Build Number   如果已经安装了Android Studio,那么我们只需要增量更新即可。所以下载更新jar包即可,首先要知道自己当前的Android Studio的版本号,Help-》About注意Build #AI-130.745757,比如笔者的版本号为 130.745757

2.查询目前Android Studio的最新版本号是多少

(1)访问网站http://tools.android.com/recent可查看最新的Build Number,或者

(2)访问https://dl.google.com/android/studio/patches/updates.xml查看最新的版本号,目前笔者获得的最新xml数据如下

从返回的xml数据可知目前最新的Build Number 为132.809981

3.下载增量更新包

获得版本号,我们就可以下载更新包了,比如笔者的更新包下载地址为https://dl.google.com/android/studio/patches/AI-130.745757-132.809981-patch-win.jar请根据自己的Android Studio的build number下载相应的更新包,格式为AI-$FROM-$TO-patch-win.jar,其中$FROM为你当前android studio的build number,$TO为最新的android studio 的build number

4.安装更新包将下载的更新包拷贝至Android Studio 的安装目录,比如笔者的安装目录为D:\android-studio,...

Android Studio 3.0金丝雀版更新内容:

亮点1:多了一个Profile or debug APK选项,是将之前tools下的apk分析功能单独拎出来了,操作更加直接了。

如何更新Android Studio 3.0正式版

亮点2:Include Kotlin support,无疑这是3.0最大的改变,扶正Kotlin,Google火速推进,实在是服。勾选后会自动加入Kotlin相关的build.gradle配置。

如何更新Android Studio 3.0正式版

亮点3:最下面多了Android Things,可以直接勾选后创建Android Things应用。

如何更新Android Studio 3.0正式版

如何更新Android Studio 3.0正式版

亮点4:图标换了,个人觉得现在的更简洁(骚气),也挺符合Kotlin语言的风格、

如何更新Android Studio 3.0正式版

亮点5:项目下的build.gradle的dependencies

ext.kotlin_version = '1.1.2-4' classpath 'com.android.tools.build:gradle:3.0.0-alpha1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

app下的build.gradle:

插件和依赖 apply plugin: 'kotlin-android' compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

gradle版本:gradle-4.0-milestone-1-all

远程仓库增加google:maven { url 'https://maven.google.com' }

还有一些小图标的更改就不多说了。

Android Studio 3.0金丝雀版问题发现:

不知道你们遇到没有,我遇到了这样的问题:

Error:Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'. Possible causes for this unexpected error include:  Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project. In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

查了下stackoverflow,发现是kotlin版本不对,将

ext.kotlin_version = '1.1.2-3'

修改成

ext.kotlin_version = '1.1.2-4'

再同步一下就ok了。

Tags:责任编辑:chaijianxin
    1. Android Studio WindowsAndroid Studio Windows版

      本站提供Android开发工具Android Studio汉化版,Android SDK(Android SDK Tools)等开发工具,免费下载!!!

    软件评论

    请自觉遵守互联网相关政策法规,评论内容只代表网友观点,与本站立场无关!

        登录   注册
    猜你喜欢