
contained in:

Specifies a vendor-provided shared native library that the application must be linked against. This element tells the system to make the native library accessible for the package.

NDK libraries are by default accessible and therefore don't require the <uses-native-library> tag.

Non-NDK native shared libraries that are provided by silicon vendors or device manufacturers are not accessible by default if the app is targeting Android 12 or higher. The libraries are accessible only when they are explicitly requested using the <uses-native-library> tag.

If the app is targeting Android 11 or lower, the <uses-native-library> tag is not required. In that case, any native shared library is accessible regardless of whether it is an NDK library.

This element also affects the installation of the application on a particular device:


The android:required attribute is described in detail in the following section.

The name of the library file.

The default is "true".

introduced in:
API Level S
see also:


Last updated 2021-04-21 UTC.