手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Android Studio 2.0 Preview 5 发布下载

[日期:2016-01-15] 来源:oschina.net  作者:Linux [字体:大 中 小]

Android Studio 2.0 Preview 5 发布下载,更新如下:

  • Instant Run: We've made a huge number of changes in this area. Among the user visible features, we now support "cold swap": if there is an incompatible change that can't be hot swapped, it now builds and deploys incremental changes and restarts the app. We use several different methods for this, depending on the API level of the target device:

    • On Android Marshmallow, we use "APK splits", dividing the codebase up into slices that are packaged as individual APK slices, and install these via adb install-multiple. This means that on M, we don't need to use the class loader tricks that we use on older platforms.

    • On Android Lollipop, we use multidex to split the app code into dex slices, and push those.

    • On Android KitKat and below, we create a single dex file containing the changed classes.

    • In addition to "coldswap", which restarts a running app after applying incompatible changes, we also support "freeze swap" where we support building incrementally even when the app isn't originally running. In that case, we push the changes via adb to an "inbox" directory on the device.

    • Note that Instant Run now requires a new version of the Gradle plugin: 2.0-alpha5 (also released today) - release notes for the plugin

  • Lint

    • There is a new "Remove Unused Resources" refactoring which finds and removes unused resources in the project.

    • The unused resource detector has been rewritten, and now supports flagging "transitive" unused resources (resources that are referenced, but only from other unused resources), supports detecting resource references in raw files such as .html image references, and supports the tools:keep and tools:discard attributes used by the Gradle resource shrinker, it considers inactive source sets (e.g. resources defined in other product flavors and build types), and properly handles static field imports. It now also has a quickfix for removing unused resources.

    • Implicit API checks. Until now, lint has checked that method calls and field references are supported on all platforms targeted by your minSdkVersion. However, there are a number of classes that have started implementing new interfaces, such as Closeable, in later levels - or that have even changed which super class they extend. For example, KeyEvent only has InputEvent as a super class as of API 9. That means that in all the places where you have an implicit or explicit cast, you also have a potential crash. Lint now tracks these API changes and checks all implicit casts:

    • Several new lint checks - one looking for a common pitfall in RecyclerView usage, one looking for a potential crash with Parcelable loading, as well as 8 lint checks ported from bytecode analysis to in-IDE analysis such that they can run in the background in the editor.

    • The @IntDef, @IntRange and @Size inspections are now checked not just for primitive ints, but for int arrays and varargs as well.

    • A number of other miscellaneous improvements, such as lint now running even when there are syntax errors in the current file being edited, exposing lint issue categories in the IDE analysis window, fixes to make third party lint rules (provided from AAR libraries) work better inside the IDE, etc.

  • Data binding: The XML editor now support code completion for data binding expressions. 

  • Test Artifacts: The experimental test artifacts feature (where both unit test and instrumentation tests are enabled simultaneously in the IDE) has been improved further and is now enabled by default.

  • Code completion inside style tags should now work better; it looks up the parent styles and suggests eligible items.

  • We've also been working on improving the accessibility support, as well as infrastructure work on the SDK manager and the wizard infrastructure.

  • And as always - a large number of bug fixes. Please let us know if there are new problems, or if the fixes aren't working correctly!

详情请看:Android Studio 2.0 Preview 5 Available

下载地址:Android Studio 2.0 Preview 5

更多Android Studio相关内容可以看看以下的有用链接: 

在Ubuntu 15.04下安装Android Studio  http://www.linuxidc.com/Linux/2015-06/119318.htm 

Android Studio 2.0中的模拟器已提速50倍  http://www.linuxidc.com/Linux/2015-11/125481.htm

Ubuntu 12.04(64位)安装Android Studio 全过程 http://www.linuxidc.com/Linux/2013-05/84812.htm 

Android Studio v0.1尝鲜 http://www.linuxidc.com/Linux/2013-05/84681.htm 

Android Studio使用教程 http://www.linuxidc.com/Linux/2013-05/84579.htm 

Android Studio开发指南 http://www.linuxidc.com/Linux/2013-05/84543.htm

Android Studio设置主题 和 不支持中文的问题解决方法 http://www.linuxidc.com/Linux/2013-05/84488.htm 

Android Studio 下载安装以及不能打开的解决办法 http://www.linuxidc.com/Linux/2013-05/84409.htm 

Android Studio安装使用图文教程 http://www.linuxidc.com/Linux/2014-09/106914.htm 

Ubuntu上安装Android Studio 1.3(谷歌 Android IDE 开发)  http://www.linuxidc.com/Linux/2015-08/121004.htm 

Android Studio 的详细介绍:请点这里
Android Studio 的下载地址:请点这里 

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-01/127441.htm

linux
相关资讯       Android Studio 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款