android-r7-安装准备

来源:互联网 发布:情义我心知 黎明演技 编辑:程序博客网 时间:2024/04/20 21:00

System and Software Requirements

The sections below describe the system and software requirements for using the Android NDK, as well as platform compatibility considerations that affect appplications using libraries produced with the NDK.

The Android SDK

  • A complete Android SDK installation (including all dependencies) is required.
  • Android 1.5 SDK or later version is required.

Supported operating systems

  • Windows XP (32-bit) or Vista (32- or 64-bit)
  • Mac OS X 10.4.8 or later (x86 only)
  • Linux (32 or 64-bit; Ubuntu 8.04, or other Linux distributions using GLibc 2.7 or later)

Required development tools

  • For all development platforms, GNU Make 3.81 or later is required. Earlier versions of GNU Make might work but have not been tested.
  • A recent version of awk (either GNU Awk or Nawk) is also required.
  • For Windows, Cygwin 1.7 or higher is required. The NDK will not work with Cygwin 1.5 installations.

Android platform compatibility

  • The native libraries created by the Android NDK can only be used on devices running the Android 1.5 platform version or later. This is due to toolchain and ABI related changes that make the native libraries incompatible with 1.0 and 1.1 system images.
  • For this reason, you should use native libraries produced with the NDK in applications that are deployable to devices running the Android 1.5 platform version or later.
  • To ensure compatibility, an application using a native library produced with the NDK must declare a <uses-sdk> element in its manifest file, with an android:minSdkVersion attribute value of "3" or higher. For example:
    <manifest>  <uses-sdk android:minSdkVersion="3" />  ...</manifest>
  • If you use this NDK to create a native library that uses the OpenGL ES APIs, the application containing the library can be deployed only to devices running the minimum platform versions described in the table below. To ensure compatibility, make sure that your application declares the proper android:minSdkVersion attribute value, as given in the table.
  • OpenGL ES Version UsedCompatible Android Platform(s)Required uses-sdk AttributeOpenGL ES 1.1Android 1.6 and higherandroid:minSdkVersion="4"OpenGL ES 2.0Android 2.0 and higherandroid:minSdkVersion="5"

    For more information about API Level and its relationship to Android platform versions, see Android API Levels.

  • Additionally, an application using the OpenGL ES APIs should declare a <uses-feature> element in its manifest, with an android:glEsVersion attribute that specifies the minimum OpenGl ES version required by the application. This ensures that Android Market will show your application only to users whose devices are capable of supporting your application. For example:
    <manifest>  <uses-feature android:glEsVersion="0x00020000" />  ...</manifest>

    For more information, see the <uses-feature> documentation.

  • If you use this NDK to create a native library that uses the API to access Android Bitmap pixel buffers or utilizes native activities, the application containing the library can be deployed only to devices running Android 2.2 (API level 8) or higher. To ensure compatibility, make sure that your application declares <uses-sdk android:minSdkVersion="8" /> attribute value in its manifest.

原创粉丝点击