红联Linux门户
Linux帮助

Android Studio 0.4.4发布

发布时间:2014-02-07 22:12:19来源:红联作者:empast
Android Studio 0.4.4 发布了,改进记录:

Bug fixes. A lot of them. Thank you for filing bugs at http://b.android.com, and keep them coming! Of particular note we've fixed the bug where library dependencies were sometimes dropped (and resources and Java symbols show up in red.)

Merged to the latest IntelliJ 13 EAP build 133.696

Retina support on OSX. If you're displaying Android Studio on a retina-density screen on OSX, using JDK 6 or recent versions of JDK 7, we will render your layouts in full Retina resolution. This is not just for layouts, but for the editor margin previews of drawable resources too. It's hard to convey this on a web page without Retina density, but here's a zoomed in view of the editor preview before (with Retina density text, and non-Retina icon painting as handled in Studio versions prior to 0.4.4) :

Here's the same editor now with Retina handling of these drawable resources:

This makes an even bigger difference in the layout editor and with the XML layout preview feature, since the images in question are much larger. You can typically see your phone layouts in full resolution (no scaling involved.)

Lint

Lint now checks Gradle files. It will warn about

Obsolete dependencies (e.g. not using the latest play services, not using the latest build tools, etc)

Using absolute paths

Using Windows path separators

Using incompatible combinations of tools libraries (such as using a support library older than the target SDK version)

Using + syntax in dependencies (not enabled by default)

Accidentally calling DSL methods (such as attempting to set versionName by calling a local method named getName)

Using constructs not properly handled by the IDE support (such as reassigning a project's directory)

New lint check warning about using a with size wrap_contents

Lint checks suggesting to use SparseLongArray and LongSparseArray

Lint running inside Android Studio now consults a project's lint.xml (to for example change the severity of an issue from warning to error or vice versa)

The layout editor now supports rendering device frames (which was only available in layout preview until this point). It also has a render settings menu (to turn off device frames) and a Refresh action.

Templates

Newly created projects are initialized with the right build.gradle setup such that you can simply put .jar and .aar files into the libs/ directory and they will automatically be used (similar to how the libs/ folder worked in Eclipse ADT.)

The New Notification template is back (found under New > Android Component)

Gradle Integration

The Gradle daemon is shutdown on IDE exit, which should fix the Android Studio update mechanism on Windows (starting after the next update.)

项目主页:http://source.android.com/

下载地址:http://source.android.com/source/downloading.html

来自:开源中国社区
文章评论

共有 0 条评论