andrio complie unix lib

libnet

libpcap

sudo apt-get install flex

sudo apt-get install -y byacc

<uses-sdk android:minSdkVersion=”9″ />

  • Native Code CPU Architecture Used Compatible Android Platform(s)
    ARM, ARM-NEON Android 1.5 (API Level 3) and higher
    x86 Android 2.3 (API Level 9) and higher
    MIPS Android 2.3 (API Level 9) and higher

    These requirements mean you can use native libraries produced with the NDK in applications that are deployable to ARM-based devices running Android 1.5 or later. If you are deploying native libraries to x86 and MIPS-based devices, your application must target Android 2.3 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-sdkandroid:minSdkVersion="3"/>
      ...
    </manifest>