Android-runtime: Unable to increase minSdk version by modifying AndroidManifest.xml

Created on 3 Jul 2018  路  1Comment  路  Source: NativeScript/android-runtime

I am trying to build verified plugin:

  • tns create app-ns-fingerprint-auth --template tns-template-blank
  • tns plugin add nativescript-fingerprint-auth --path app-ns-fingerprint-auth
  • tns build android --path app-ns-fingerprint-auth
    ERROR appear:
* 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] C:\Users\dinev\.gradle\caches\transforms-1\files-1.1\FingerprintManager-v2.0.2.aar\169c1a9bb1b3958d2bbc512ddbac258f\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 (may lead to runtime failures)
  • I tried to increase minSdk version to 23 as suggested but problem still persists

tns version is 4.1.2

Most helpful comment

@ndinev, can you try setting the min SDK in app/App_Resources/Android/app.gradle:

android {  
  defaultConfig {  
    minSdkVersion 23
  }  
} 

We will check if we can take into account the value from AndroidManifest.xml

>All comments

@ndinev, can you try setting the min SDK in app/App_Resources/Android/app.gradle:

android {  
  defaultConfig {  
    minSdkVersion 23
  }  
} 

We will check if we can take into account the value from AndroidManifest.xml

Was this page helpful?
0 / 5 - 0 ratings