SDK Tools, Revision 8Dependencies: If you are developing in Eclipse with ADT, note that SDK Tools r8 is designed for use with ADT
8.0.0 and later. After installing SDK Tools r8, we highly recommend updating your ADT Plugin to
8.0.0.
Also note that SDK Tools r8 requires a new SDK component called Platform-tools. The new
Platform-tools component lets all SDK platforms (Android 2.1, Android 2.2, and so on) use the
same (latest) version of build tools such as
adb,
aapt,
aidl, and
dx. To download the Platform-
tools component, use the Android SDK Manager, as described in
Adding SDK ComponentsUpgrading from SDK Tools r7: If you are upgrading to SDK Tools r8 from an earlier version, note that the the default installed
location for the
adb tool has changed from
<SDK>/tools/adb to
<SDK>/platform-tools/adb. This
means that you should add the new location to your PATH and modify any custom build scripts to
reference the new location. Copying the
adb executable from the new location to the old is
not recommended, since subsequent updates to the SDK Tools will delete the file.
General notes:- All SDK platforms now support Library Projects.
- Support for a true debug build. Developers no longer need to add the android:debuggable attribute to the <application> tag in the manifest — the build tools add the attribute automatically. In Eclipse/ADT, all incremental builds are assumed to be debug builds, so the tools insert android:debuggable="true". When exporting a signed release build, the tools do not add the attribute. In Ant, a ant debug command automatically inserts the android:debuggable="true" attribute, while ant release does not. If android:debuggable="true" is manually set, then ant release will actually do a debug build, rather than a release build.
- Automatic ProGuard support in release builds. Developers generate a ProGuard configuration file using the android tool — the build tools then automatically run ProGuard against the project sources during the build. For more information, see the ProGuard documentation.
- New overridable Ant javac properties: java.encoding, java.source, and java.target (default values are "ascii", "1.5", and "1.5", respectively).
- New UI for the HierarchyViewer tool.
ADT Plugin for Eclipse 8.0.0
Dependencies:
ADT 8.0.0 is designed for use with SDK Tools r8. If you haven't already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do so.
General notes:
- New version number scheme that follows the SDK Tools revision number. The major version number for your ADT plugin should now always match the revision number of your SDK Tools. For example, ADT 8.x is for SDK Tools r8.
- Support for true debug build. You no longer need to change the value of the debuggable attribute in the Android Manifest.
Incremental builds automatically insert debuggable="true", but if you perform "export signed/unsigned application package", ADT does not insert it. If you manually set debuggable="true" in the manifest file, then release builds will actually create a debug build (it does not remove it if you placed it there).
- Automatic ProGuard support in release builds. For it to work, you need to have a proguard.config property in the default.properties file that points to a ProGuard config file.
- Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes:
Full drag and drop from palette to layout for all Layout classes.
Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.
Contextual menu with enum/flag type properties.
New zoom controls.
- New HierarchyViewer plug-in integrated in Eclipse.
- Android launch configurations don't recompile the whole workspace on launch anymore.
- android.jar source and javadoc location can now be configured.
Android NDK, Revision 5
This release of the NDK includes many new APIs, most of which are introduced to support the development of games and similar applications that make extensive use of native code. Using the APIs, developers have direct native access to events, audio, graphics and window management, assets, and storage. Developers can also implement the Android application lifecycle in native code with help from the new NativeActivity class. For detailed information describing the changes in this release, read the CHANGES.HTML document included in the downloaded NDK package.
General notes:
- Adds support for native activities, which allows you to implement the Android application lifecycle in native code.
- Adds native support for the following:
Input subsystem (such as the keyboard and touch screen)
Access to sensor data (accelerometer, compass, gyroscope, etc).
Event loop APIs to wait for things such as input and sensor events.
Window and surface subsystem
Audio APIs based on the OpenSL ES standard that support playback and recording as well as control over platform audio effects
Access to assets packaged in an .apk file.
- Includes a new toolchain (based on GCC 4.4.3), which generates better code, and can also now be used as a standalone cross-compiler, for people who want to build their stuff with ./configure && make. See docs/STANDALONE-TOOLCHAIN.html for the details. The binaries for GCC 4.4.0 are still provided, but the 4.2.1 binaries were removed.
- Adds support for prebuilt static and shared libraries (docs/PREBUILTS.html) and module exports and imports to make sharing and reuse of third-party modules much easier (docs/IMPORT-MODULE.html explains why).
- Provides a default C++ STL implementation (based on STLport) as a helper module. It can be used either as a static or shared library (details and usage examples are in sources/android/stlport/README). Prebuilt binaries for STLport (static or shared) and GNU libstdc++ (static only) are also provided if you choose to compile against those libraries instead of the default C++ STL implementation. C++ Exceptions and RTTI are not supported in the default STL implementation. For more information, see docs/CPLUSPLUS-SUPPORT.HTML.
- Includes improvements to the cpufeatures helper library that improves reporting of the CPU type (some devices previously reported ARMv7 CPU when the device really was an ARMv6). We recommend developers that use this library to rebuild their applications then upload to Market to benefit from the improvements.
- Adds an EGL library that lets you create and manage OpenGL ES textures and services.
- Adds new sample applications, native-plasma and native-activity, to demonstrate how to write a native activity.
- Includes many bugfixes and other small improvements; see docs/CHANGES.html for a more detailed list of changes.