23
Feb
image

In preparation for the upcoming final releases, the Android team today released ADT 17-preview (Android Developer Tools plugin for Eclipse) and SDK Tools r17-preview with the following improvements that eager developers can try out without waiting any longer.

What's New

Out of all the additions and changes, I'm mostly excited about the new network usage tool, the fix for the dreaded "Conversion to Dalvik format failed with error 1" error when trying to use Proguard (oh, how many hours I wasted on this one), and the end to default ids for various layout elements. Sweet deal.

Here's the full changelog:

New Features

  • DDMS can now show the live detailed network usage of an app (More Info)
  • ProGuard
    • Bundled ProGuard updated to version 4.7. In addition to many new features, this will fix the "Conversion to Dalvik format failed with error 1" error some users have experienced.
    • The default proguard.cfg file has been updated with better default flags for Android.
    • The ProGuard configuration file has been split in half, with project specific flags kept in project and the generic Android flags distributed (and updated) with the tools themselves.
  • Lint
    • Lint now checks Java code, and checks which previously performed pattern based searches in the Java code (such as the unused resource check) have been rewritten to use the more accurate Java parse trees.
    • Lint supports library projects, so for example the unused resource check will properly handle resources declared in a library project and referenced in a downstream project.
    • Lint warnings can be suppressed in Java code with the new @SuppressLint annotation, and in XML files with the new tools: namespace and ignore-attribute. (More Info)
    • New lint checks:
      • Find Android API calls that require a version of Android higher than the minimum supported version. You can use the new @TargetApi annotation to specify local overrides for conditionally loaded code. (More Info)
      • Performance rules
      • About 30 other new rules
    • Revamped Eclipse Lint UI.
      • New "Run Lint" toolbar action with a dropdown menu for selecting specific (or all) projects, clearing results, etc.
      • The results window is now organized as a tree rather than a flat list. Each issue type has a single top level item, which makes it easier to quickly scan through the reported issues and narrow down to issues you are most interested in.
      • The results window contains many new toolbar actions, including expand/collapse, ignore in file, ignore in project, ignore everywhere, show options, and configure columns.
      • There are new columns available, such as category, priority, project, file and line. The column selection (as well as the column sizes) are persisted. You can click on columns to sort by that column.
      • The Lint Options dialog has Enable All and Disable All buttons, and a search filter textbox to filter by issue id, summary and severity.
  • New Quick Outline for XML editors (Ctrl-O, Command-O). This shows the structure of the current file including icons and ids, and lets you filter and quickly jump to specific ids.
  • The resource chooser now shows the resolved value for resources (e.g. when selecting @string/hello it displays that the resolved value is "Hello World"). It also allows editing the chosen value directly.
  • The layout editor no longer assigns default ids to layouts, includes and merge tags. This tended to pollute the namespace with a lot of unused resources since layouts aren't usually manipulated via code, or referenced from XML. (The RelativeLayout editor automatically assigns ids to views without ids when pointing to them.)
  • Export Screenshot from the Layout Editor
  • Layout editor fix for SlidingDrawer which on some platforms could not be dragged into the layout. Also fix preview rendering for SlidingDrawer and TabHost (issue 23022).
  • New default application icons, including an xhdpi version.
  • Important bug fixes:
    • Fixed issues that could prevent layout rendering due to unresolvable resources (issues 21046 and 21051)
    • Fix bug in resource chooser which made some types of framework resources impossible to select (issue 20589)
    • Fix a bug in the formatter where a certain whitespace pattern could result in a non-space character getting deleted (issue 23940)
    • Fix locale bug affecting Turkish locales in particular (issue 23747)

Download/Install

While you can't use the SDK Manager to automatically upgrade to preview releases, you can still give them a go by installing them manually - just head over to the ADT 17 preview page and scroll down to Installation.

Source: Android Tools site

Image courtesy of Hackaday.com

Artem Russakovskii
Artem is a die-hard Android fan, passionate tech blogger, obsessive-compulsive editor, bug hunting programmer, and the founder of Android Police.
Most of the time, you will find Artem either hacking away at code or thinking of the next 15 blog posts.

  • http://facebook.com/smsmycarandme Force

    Wow, this sounds like a BIG update! Nice work and thanks for telling! :)

  • zycis

    Seems they still haven't fixed the annoying LogCat scrolling bug yet :/

    • riper

      Yea, that's so annoying! I hope they can fix that.

  • Jonny

    Updated my ADT to this and it's a much needed improvement, but the network statistics feature doesn't seem to actually work.

    http://code.google.com/p/android/issues/detail?id=25997&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

    Could just be the version of eclipse I'm running, my current development environment or even the devices I tested it on. Hopefully I am just doing something wrong.

Quantcast