Skip to content

It's not safe to always use the latest available API level #11

@mhsmith

Description

@mhsmith

The README contains the following:

If you want to create a standalone toolchains (i.e. you're not using ndk-build), do the previous step, and then follow this guide. You will want to specify which API level you want to use. It is safe to always use the latest available, even if you are targetting older devices.

Surely this can't be correct. If you build against a newer API level, then configure scripts and the like will detect and use any functions which are available in the headers for that level. Then when you try and run your program on an older level where those functions aren't available, you'll get a dynamic linker error.

Instead, when creating a standalone toolchain, you should select the same API level as your app's minSdkVersion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions