Android Tools Project Site

Search this site
    • Projects Overview
    • Screenshots
    • Release Status
    • Roadmap
    • Download
    • Preview Channel
    • Recent Changes
    • Technical docs
    • Known Issues
    • Tips
    • Build Overview
    • Contributing
    • Feedback
    Download‎ > ‎

    ADT 20 Preview

    New: June 28, 2012 - ADT 20 and Tools 20 Released! 
    Visit developer.android.com/sdk/index.html to download.

    June 1, 2012: We have just released an updated preview build of ADT 20. Follow the installation instructions below. NOTE: The download link for the ADT 20 plugin was wrong earlier today. Please make sure you get adt20-preview3.zip.
    May 17, 2012: We have just released an updated preview build of ADT 20. Follow the installation instructions below.
    April 17, 2012: We have just released a preview build of ADT 20 and of the SDK Tools, r20. Follow the installation instructions below.

    New in ADT 20

    • A lot of bug fixes, particularly in the Lint area.
    • Performance and memory fixes (loading SDK data should be 30% faster.)
    • A few new lint rules:
      • Detect usages of Toast.makeText() without calling show() on the result, as well as passing invalid duration parameters (e.g. a number instead of one of the two allowed constants.)
      • Detect incorrect manifest registrations (where elements such as <uses-library>, <activity> etc are placed under the wrong parent.)
      • Several security checks: Look for exported content providers without required permissions, look for creation of world readable files and preferences, look for calls to  android.webkit.WebSettings.setJavaScriptEnabled.
    • New property sheet in the layout editor which offers:
      • Highlighting (in bold) for important attributes.
      • Inline preview of colors and images, as well as the corresponding resource name.
      • Displays default values, when available.
      • Completion of resource values and enum and flag constants.
      • Support for showing and hiding "advanced" properties.
      • Nested properties (and collapse all and expand all) for better categorization. For example, layout params are listed first as a single nested property.
      • Tooltips over the attribute names, not values, so they never obscure the value column.
      • Checkbox support for boolean values.
      • Support for switching between alphabetical and natural sort orders.
      • More details here.
    • Support XML editor outlines for layout files.
      • Switching back and forth between the text editor and graphical editor will alternate between the two outlines, and in particular the XML editor outline will keep up to date with edits in the editor, and selection will follow the mouse cursor etc.
    • SDK Manager:
      • Cache to avoid downloading repository definitions all the time.
      • New "Tools > Manage Add-on Sites" option that allows deactivating 3rd party sites (e.g. if one or more are temporarily slow to load.)
    • Fixes in Ant:
      • Test projects now have access to the full classpath from the tested projects, including Library Projects and 3rd party jar
      • Applications embedding tests can now be deployed and tested, including with code coverage, like test applications.
    • NDK support (alpha):
      • Initial support for building and debugging projects with C/C++ code.
      • To enable this, install the NDK feature (depends on CDT), and then set the path to NDK in Android Preferences.
      • Add NDK nature to an Android project by right clicking on the project and select "Android Tools -> Add Native Support".
      • To debug an NDK project, create a new debug configuration of type "Android Native Application".
    • New in Preview 2:
      • New window management in the layout editor (more details)
      • New configuration chooser in the layout editor (more details)
      • Lint-on-Save for Java files (more details)
      • Lint check ensuring that when you edit() a SharedPreference object you call commit()
      • Asset Studio Wizard support for padding and turning off background shapes
      • More bug fixes
    • New in Preview 3:
      • Eclipse 4.x support: Previous releases of ADT 20 did not work well on Eclipse 4.x. As of Preview 3, the known critical issues (such as cut/copy/paste being broken in XML editors) have been fixed. Please let us know of any remaining ADT-specific issues with Eclipse 4.2.
      • Build System
        • Automatic merging of library project manifest files into the including project's manifest. Enable with the manifestmerger.enabled property.
        • Automatic ProGuard support for the aapt -G flag. This means that the build system will generate a temporary ProGuard keep-rules file containing classes to keep that are referenced from XML files (such as custom views) and pass this to ProGuard at shrink-time. This can make the resulting APK much smaller when using just a small portion of a large library project (such as the Android Support library), since we have also removed the catch-all rules to keep all custom views from the default ProGuard configuration file.
      • Execution
        • LogCat:  Allow users to set colors for different priorities
        • Allow running on multiple devices with a single launch. The target tab in the launch configuration dialog adds a new option which allows launching on all connected devices, and a drop down allows the user to further narrow down the list to just physical devices or just emulators. (This applies only to Run configurations, not to Debug/JUnit tests.)
      • Lint
        • Tighter integration of lint with the layout editor (more details).
        • New lint checks:
          • Check to make sure that Fragment classes are instantiatable. If you accidentally make a fragment innerclass non-static, or forget to have a default constructor, you can hit runtime errors when the system attempts to reinstantiate your fragment after a configuration change.
          • Look for handler leaks: This check makes sure that a handler inner class does not hold an implicit reference to its outer class.
          • Duplicate Activity registrations in the manifest. This can lead to subtle errors that can be difficult to understand.
      • NDK
        • Custom GDB configuration tab
        • Add support for debugging on MIPS targets
        • Add NDK debug launch shortcut ("Debug as Android Native Application")
        • Improve the way the device chooser dialog is handled (should be shown less often)
      • XML Editing
        • Go to Declaration now works for theme references (?android:attr, ?attr: etc,)
        • Improvements to code completion in style definitions
        • Completion of the minSdkVersion and targetSdkVersion attributes in manifest files now include version descriptions for each of the API levels
        • As of Preview 2, code completion includes custom attributes for custom views. In Preview 3, this is further fixed such that edits to the style files result in the code completion picking up recent edits.
      • Settings for the SDK Manager download cache (SDK Manager > Tools > Options)
      • More bugfixes

    Installation

    NOTE: ADT 20 requires Java 1.6 or higher (and Eclipse 3.6.2 or higher.).

    ADT 20 depends on changes in the tools component as well (but not platform-tools), so to use the preview you will need to update both (tools and the ADT plugin).

    Download

    You need to download
    • adt20-preview3.zip (11 MB)
    and one of the following depending on whether you are developing on Windows, Linux or Mac OSX:
    • tools_r20-preview3-windows.zip (33 MB)
    • tools_r20-preview3-linux.zip (25 MB)
    • tools_r20-preview3-macosx.zip (29 MB)
    The source code is available in the Android Git repository, using SDK changeset 55121851dcb45f8474c2e895eb14cc8974045c86.

    Updating the SDK

    ADT 20 relies on some changes to the SDK command line tools, so first you'll need to update your SDK with the new binaries which are not yet available via the SDK Manager.

    Go to your Android SDK root directory (where you have an existing tools/ folders), and copy or move the existing directories out of the way. (Don't just delete them. This is a preview release, so it's possible for the new versions to have bugs and you may want to be able to go back).

    Then unzip your tools_r20-preview3-platform.zip files into the SDK directory.

    On Windows and Mac OSX, you can extract and copy the files using the Windows Explorer or the Mac Finder. On Linux, you can use something like the following (which just unzips the contents of the preview file directly on top of the SDK directory, with the -d flag pointing to the destination SDK directory:

    $ unzip -d /your/sdk/dir ~/Downloads/tools_r20-preview3-linux.zip

    Installing the ADT plugins

    Download and unzip the adt20-preview3.zip file somewhere and then start Eclipse and install the plugin in the normal way described here: developer.android.com/sdk/eclipse-adt.html#troubleshooting. For Eclipse 3.7 this means opening the "Install New Software..." dialog from the Help menu, then pointing to the directory where you unzipped adt20-preview3.zip and following the on-screen instructions.



    As always, please provide feedback and bug reports (using one of the feedback channels).

    Comments

    Sign in|Recent Site Activity|Report Abuse|Print Page|Remove Access|Powered By Google Sites

    gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.