question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: minSdkVersion 17 cannot be smaller than version 23

See original GitHub issue

hey,

I am trying to add nativescript-fingerprint-auth.

When I build for Android, I am getting this error:

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 17 cannot be smaller than version 23 declared in library [com.github.JesusM:FingerprintManager:v2.0.2] /Users/witalec/.gradle/caches/transforms-1/files-1.1/FingerprintManager-v2.0.2.aar/cbc3c418a7ed90935aaea75c6cf2ad9a/AndroidManifest.xml as the library might be using APIs not available in 17
        Suggestion: use a compatible library with a minSdk of at most 17,
                or increase this project's minSdk version to at least 23,
                or use tools:overrideLibrary="com.jesusm.kfingerprintmanager" to force usage (maylead to runtime failures)

my AndroidManifest.xml has the following setting:

<uses-sdk
android:minSdkVersion="23"
android:targetSdkVersion="__APILEVEL__"/>

My runtime is:

"tns-android": {
    "version": "4.0.0-rc-2018.3.22.1"
}

but I also tried with:

"tns-android": {
"version": "3.4.0"
}

I am using NativeScript@rc

Any idea what I am doing wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mikaelkaltcommented, May 25, 2018

Another workaround I’ve just figured out, is to manipulate your App_Resources/Android/AndroidManifest.xml manually and adding what @EddyVerbruggen mentioned before: <uses-sdk tools:overrideLibrary="com.jesusm.kfingerprintmanager"/>

Important: It needs to be before the the line that defines your minSdkVersion.

0reactions
ryanammonscommented, Feb 20, 2019

Did this actually get reported to NS team? It’s still an issue, and I don’t like having to target minimum 23.

Read more comments on GitHub >

github_iconTop Results From Across the Web

uses-sdk:minSdkVersion 15 cannot be smaller than version ...
This solved my problem. Right click on app folder in android studio, select 'open module settings' | or ...
Read more >
Manifest merger failed : uses-sdk:minSdkVersion 19 cannot ...
Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 22 declared in library #1070.
Read more >
<uses-sdk> | Android Developers
If a android:minSdkVersion attribute is declared, its value must be less than or equal to the system's API Level integer. If not declared,...
Read more >
uses-sdk:minSdkVersion 11 cannot be smaller than version L
Recently I was receiving this error. Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version L. So I changed it to...
Read more >
[Solved][Flutter] Manifest merger failed : uses-sdk ...
... failed : uses-sdk:minSdkVersion 16 cannot be smaller than version ... modify the minimum SDK version of Android in the Flutter project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found