Android Studio 2.3 Official Edition new features, you don't come to see?!

Source: Internet
Author: User
Tags webp

2017.3.3 Google老大发布了Android Studio 2.3正式版。在许多2.3beta版本的基础上修复了bug然后推出了正式版。提供了一些新特性,和对部分已有功能的修改完善。
Buildinstant Run improvements and UI changes
之前的版本,会默认勾选上Instant Run 选项,然后在控制面板上只有一个Run 和Debug按钮。编译器自动判断是否需要Instant Run。2.3.0正式版在控制面板上多出了一个Instant Run按钮 (一个 [闪电] 标志)。所以可以由开发者自己选择是否需要通过Instant Run方式来运行程序。
    • Minsdkversion Run is supported with Android Plugin for Gradle version 2.0.0 or later, and when Instant is set to 15 or higher in the app's module level Build.gradle file. For best performance, you can set the minsdkversion to 21 or higher.

    • If the project loads native code with CMake or Nkd-build, Instant Run is no longer disabled. (Previously, if the native code is linked in the project, instant Run is disabled directly). but instant run can only be used for Java code and cannot work on native code.

    • It is also more reliable to install the debug program by using Run mode.

    • These optimizations may affect your analysis, and you can disable the instant Run function before you analyze it

Build Cache

Version 2.2, added the ability to compile the cache . However, the 2.3 official version is closed by default. You can turn this feature on by Android.enablebuildcache = True.

2.3 The official version starts to turn this feature into the default enabled state.

UIAVD & SDK

In the 2.3 release, both the AVD Manager and SDK Manager buttons are added to the navigation bar Control Panel.

If you want to display in navigation bar, you need to hide the tool bar.

Preview the layout changes
直接看图

Andriod JUnit
2.3中,将Junit改名为 Android Junit。如果你的项目使用Junit,在2.3上第一次运行时,会弹出一个对话框提示你名称更改。
Android instrumented Tests
Android Tests 改为 Android Instrumented Tests
GPU Debugger has been removed
从此版本开始,GPU 调试工具被移除。一个开源独立的工具即将发布到Github。敬请期待把~~~
Constraintlayout
所有的UI模板默认采用ConstraintLayout布局了。【可见google对这个布局的重视啊!】另外,增加了几套模板。

具体都增加了哪些,大家安装最新版本(2.3.0)自行查看。

Designchains and Ratios support in Constraint Layout
上面提到,2.3版本开始创建的布局默认是ConstraintLayout,而这个布局已经是正式版了。
‘com.android.support.constraint:constraint-layout:1.0.1‘
    • 1
    • 1
2.3版本ConstraintLayout布局中支持将两个或者多个view链在一起,这样组成一组,对这一组做操作即可。

还支持按比例缩放布局。如:

Layout Editor Palette
编辑布局时,在Design模式下,AS团队重新设计了这些widget的图标,变的更美观,还支持搜索widget。

Layout Favorite
2.3AS在布局方面提供的另外一个新功能就是添加保存自己常用的属性。

WebP Support
大家可能都知道 Webp 图片格式是Google提出的,提供有损压缩(如JPEG)和透明度(如PNG),但是占用更少的空间资源。现在可以直接通过AS将PNG, BMP, JPG和静态GIF 文件转成WebP格式。也支持将WebP转成PNG

通过拖动Quality那个轴改变图片压缩质量

中间Difference表示原图和压缩后的图的一个差异。压缩的越多,difference显示越清楚。
Material Icon Wizard Update
新版AS为每个图标添加了label,这样可通过搜索框快速找到icon。

Developlink Baseline
2.3中,可以设置Link检查基准。设置了基准之后,Link就会只报告新的问题。如果你只想关注新的问题,设置Baseline就可以帮到你。

APP Links Assistant
现在通过2.3版本设置App Links更简单了。2.3中内置了App Links助手。可以帮助你快速实现此功能。【Tools --> App Link Assistant】打开这个面板之后,很贴心的显示出4个步骤,每一步需要做的事情都有说明。照着做就行了。

Android Emulator Copy & Paste
新版提供了一个不错的功能。就是可以在模拟器和PC机器之间互相拷贝粘贴文本。

New and Updated Annotations
新增加了一个@RestrictTo 注解更新了@VisibleForTesting 注解的功能
For more information, please refer to
    • Https://android-developers.googleblog.com/2017/03/android-studio-2-3.html

    • Https://developer.android.com/studio/releases/index.html

    • Https://developer.android.com/studio/build/build-cache.html

    • Https://developer.android.com/studio/write/convert-webp.html

Android Studio 2.3 Official Edition new features, you don't come to see?!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.