1. JDK
2. Eclipse
3.SDK
Android 2.3现在可以使用最新的Android SDK啦。此外,全新的工具和文档,加上全新的Android NDK,已经提供啦。您现在已经有一个Android老版本的SDK,可以直接添加新增的Android 2.3 SDK组件。如果您是新的Android应用的开发者可以直接安装Android 2.3的SDK软件包。
http://androidappdocs.appspot.com/sdk/index.html
如何安装 ? http://androidappdocs.appspot.com/sdk/installing.html
The SDK starter package is not a fulldevelopment environment—it includes only the core SDK Tools, which you canuse to download the rest of the SDK components (such as the latest Android platform).
If you haven't already, get the latest version of the SDK starter package from theSDK download page.
If you downloaded a .zip
or .tgz
package (instead of the SDK installer),unpackit to a safe location on your machine. By default, the SDK files are unpackedinto a directory namedandroid-sdk-<machine-platform>
.
If you downloaded the Windows installer (.exe
file), run it now and it will checkwhether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), theninstall the SDK Tools into a default location (which you can modify).
Make a note of the name and location of the SDK directory on your system—you will need torefer to the SDK directory later, when setting up the ADT plugin and when usingthe SDK tools from command line.
在tools目录下双击android文件,选择在终端中运行即可弹出Android SDK and AVD Manager!
The last step in setting up your SDK is using the Android SDK and AVD Manager (atool included in the SDK starter package) to downloadessential SDK components into your development environment.
The SDK uses a modular structure that separates the major parts of the SDK—Android platformversions, add-ons, tools, samples, and documentation—into a set of separately installablecomponents. The SDK starter package, which you've already downloaded, includes only a singlecomponent: the latest version of the SDK Tools. To develop an Androidapplication, you also need to download at least one Android platform and the SDK Platform-tools(tools that the latest platform depend upon). However, downloadingadditional components is highly recommended.
If you used the Windows installer, when you complete the installation wizard, it will launch theAndroid SDK and AVD Manager with a default set of platforms and other components selectedfor you to install. Simply clickInstall to accept the recommended set ofcomponents and install them. You can then skip toStep 5, but werecommend you first read the section about theAvailable Components tobetter understand the components available from the Android SDK and AVD Manager.
You can launch the Android SDK and AVD Manager in one of the following ways:
SDK Manager.ext
file at the root of the AndroidSDK directory.tools/
directory in theAndroid SDK, then execute: android
To download components, use the graphical UI of the Android SDK and AVDManager, shown in Figure 1, to browse the SDK repository and select new or updatedcomponents. The Android SDK and AVD Manager will install the selected components inyour SDK environment. For information about which components you should download, see the followingsection aboutRecommended Components.
4.ADT
http://androidappdocs.appspot.com/sdk/eclipse-adt.html
Additionally, before you can configure or use ADT, you must install theAndroid SDK starter package, as described inDownloading the SDK Starter Package.Specifically, you need to install a compatible version of the Android SDK Toolsand at least one development platform. To simplify ADT setup, we recommendinstalling the Android SDK prior to installing ADT.
When your Eclipse and Android SDK environments are ready, continue with theADT installation as described in the steps below.
Use Update Manager feature of your Eclipse installation to install the latestrevision of ADT on your development computer.
Assuming that you have a compatible version of the Eclipse IDE installed, asdescribed inPreparing for Installation, above, followthese steps to download the ADT plugin and install it in your Eclipseenvironment.
Eclipse 3.5 (Galileo) and 3.6 (Helios) | Eclipse 3.4 (Ganymede) |
---|---|
|
|
Once you've successfully downloaded ADT as described above, the next stepis to modify your ADT preferences in Eclipse to point to the Android SDK directory:
Done! If you haven't encountered any problems, then the installation iscomplete. If you're installing the Android SDK for the first time, return toInstalling the SDK to complete your setup.
5.NDK
下载NDK: http://androidappdocs.appspot.com/sdk/ndk/index.html
相关内容:
http://www.ideasandroid.com/android/sdk/docs/sdk/ndk/index.html
http://androidappdocs.appspot.com/sdk/ndk/overview.html#tools
Android NDK, Revision 5(December 2010)
Installing the NDK on your development computer is straightforward and involves extracting the NDK from its download package.
Before you get started make sure that you have downloaded the latest Android SDK and upgraded your applications and environment as needed. The NDK is compatible with older platform versions but not older versions of the SDK tools. Also, take a moment to review theSystem andSoftware Requirements for the NDK, if you haven't already.
To install the NDK, follow these steps:
android-ndk-<version>
. You can rename the NDK directory if necessary and you can move it to any location on your computer. This documentation refers to the NDK directory as<ndk>
.You are now ready to start working with the NDK.
Once you've installed the NDK successfully, take a few minutes to read the documentation included in the NDK. You can find the documentation in the<ndk>/docs/
directory. In particular, please read the OVERVIEW.HTML document completely, so that you understand the intent of the NDK and how to use it.
If you used a previous version of the NDK, take a moment to review the list of NDK changes in the CHANGES.HTML document.
Here's the general outline of how you work with the NDK tools:
<project>/jni/...
<project>/jni/Android.mk
to describe your native sources to the NDK build system<project>/jni/Application.mk
.cd <project> <ndk>/ndk-build
The build tools copy the stripped, shared libraries needed by your application to the proper location in the application's project directory.
.apk
file.For complete information on all of the steps listed above, please see the documentation included with the NDK package.
HelloWorld例子(SDK): http://androidappdocs.appspot.com/resources/tutorials/hello-world.html
例子(NDK): http://androidappdocs.appspot.com/sdk/ndk/overview.html#samples