Tools: overrideLibrary marker ( see here )
A special token that can only be used with the uses-sdk declaration to override library imports whose minimum SDK version is later than the SDK version for this application. Without such a marker, manifest merging will fail. The token allows users to choose which libraries can be imported, ignoring the minimum version of the SDK.
Example. In android main manifest:
<uses-sdk android:targetSdkVersion="14" android:minSdkVersion="2" tools:overrideLibrary="com.example.lib1, com.example.lib2"/>
allows the library with the following manifest to be imported without errors:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.lib1"> <uses-sdk android:minSdkVersion="4" /> </manifest>
source share