Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:19:44+00:00 2026-06-17T22:19:44+00:00

Is it possible to define a minimum API level and a target API level

  • 0

Is it possible to define a minimum API level and a target API level in NDK, same as in the java manifest?

I only know I can use APP_PLATFORM to specify the target, but what if I want to set also that the minimum API?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:19:45+00:00Added an answer on June 17, 2026 at 10:19 pm

    No. You can’t specify that kind of information inside the NDK build system because each version of Android system image is different.

    And for native code the portability aspect is different than when your application is
    written in Java only.

    You will most probably have to compile your code against different APP_PLATFORM’s if you want to support different versions of Android with native code.

    As you said, you can only use the APP_PLATFORM directive inside the Application.mk file, which is documented as:

    APP_PLATFORM
    = Name the target Android platform. For example, ‘android-3’ correspond
    to Android 1.5 system images. For a complete list of platform names and
    corresponding Android system images, read docs/STABLE-APIS.html.

    Parts from docs/STABLE-APIS.html (android-ndk-r8d):

    There are several “API Levels” defined. Each API level corresponds to
    a given Android system platform release. The following levels are
    currently supported:

    android-3      -> Official Android 1.5 system images
    android-4      -> Official Android 1.6 system images
    android-5      -> Official Android 2.0 system images
    android-6      -> Official Android 2.0.1 system images
    android-7      -> Official Android 2.1 system images
    android-8      -> Official Android 2.2 system images
    android-9      -> Official Android 2.3 system images
    android-14     -> Official Android 4.0 system images
    

    Note that android-6 and android-7 are the same as android-5 for the
    NDK, i.e. they provide exactly the same native ABIs!

    IMPORTANT:
    The headers corresponding to a given API level are now located
    under $NDK/platforms/android-/arch-arm/usr/include

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Is it possible to define enumalpha? Is there any equivalent of Java
I want to define one application level UncaughtExceptionHandler in my Java application that is
Is it possible to define the same function in two files, include them and
Is it possible to define an anonymous implementation of IComparer? I believe Java allows
is it possible to define an extension method that at the same time is
How do I define a minimum and maximum (possibly unbounded) number of times a
Possible Duplicate: Define a method that has many (or infinite) arguments I have the
Is it possible to define a binding between an exchange (direct or topic) and
Is it possible to define an interface (e.g. MyClass Implements MyInterface) whose method/property definitions
Is it possible to define some sort of capitalize() or toLowerCase() function when creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.