Revisions
The sections below provide notes about successive releases of the SDK tools, as denoted by revision number. to determine what revision of the SDK tools you are using, refer to the "installed packages" listing in the android SDK manager.
For a summary of all known issues In SDK tools, see
Http://tools.android.com/knownissues.
SDK tools, revision 17
(March 2012)
Important:To download the new Android 4.0 system components from the android SDK manager, you must first update the SDK tools to revision 14 or later and restart the android SDK manager. if you do not, the android 4.0 system
Components will not be available for download.
-
Dependencies:
-
- Android SDK platform-tools revision 9 or later.
- If you are developing in eclipse with ADT, note that the SDK tools R17 is designed for use with ADT 17.0.0 and later. If you haven't already, we highly recommend updating your
ADT plugin to 17.0.0.
- If you are developing outside eclipse, you must have
Apache ant 1.8 or later.
-
General notes:
-
- Emulator
- Added viewing of live detailed network usage of an app in ddms. (More Info)
- Proguard
- Updated the bundled proguard tool to version 4.7. In addition to upgrade new features, this update fixes
Conversion to Dalvik format failed with error 1
Error some users have experienced.
- Updated the default
proguard.cfg
File with better default flags for Android.
- Split the proguard configuration file has been in half, with project specific flags kept in project and the generic Android flags distributed (and updated) with the tools themselves.
- Build
- Added a feature that allows you to run some code only in debug mode. Builds now generate a class called
BuildConfig
ContainingDEBUG
Constant that is automatically set according to your build type. You can check (BuildConfig.DEBUG
) Constant in your code to run debug-only functions.
- Fixed issue when a project and its libraries include the same JAR file in their libs folder. (More Info)
- Added support for custom views with custom attributes in libraries. layouts using custobutes must use the namespace URI
http://schemas.android.com/apk/res-auto
Instead of the URI that includes des the app package name. This URI is replaced with the app specific one at build time.
- Lint
- Updated lint to check Android application code. lint rules which previusly specified med pattern based searches in the application code (such as the unused resource check) have been rewritten to use the more accurate Java-style parse trees.
- Added support for checking library projects. This change means that rules such as the unused resource check properly handle resources declared in a library project and referenced in a downstream project.
- Added ability to suppress lint warnings 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:
- Added check for Android api cils that require a version of Android higher than the minimum supported version. You can use the new
@TargetApi
Annotation to suppress warnings when the code is wrapped in a system version condition. (More Info)
- Added over 20 new lint rules, including checks
Performance, XML layouts, manifest and file handling.