发布于 2016-01-15 00:32:46 | 110 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Android Studio教程,程序狗速度看过来!

Android Studio Android 开发环境

Android Studio 是一个全新的 Android 开发环境,基于IntelliJ IDEA. 类似 Eclipse ADT,Android Studio 提供了集成的 Android 开发工具用于开发和调试


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 3.1 Canary 8 发布,常见的错误修复
Android Studio 3.1 Canary 7 发布,常见错误修复
Android Studio 3.1 Canary 6 发布,常见错误修复
Android Studio 3.0.1 发布,一般错误修复和性能改进
Android Studio 3.1 Canary 4 发布,Bug 修复
Android Studio 3.0 正式发布,支持 Kotlin 语言
Android Studio 3.0 RC 1 发布,各种错误修复
Android Studio 3.0 Beta 4,新的 Android plugin DSL
Android Studio 3.0 Beta 2 发布,Bug 修复
Android Studio 3.0 Beta 1 发布,各种错误修复
Android Studio 3.0 Canary 7 发布
Android Studio 3.0 Canary 4 Bug 修复版本
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务