Skip to content

Unable to increase minSdk version by modifying AndroidManifest.xml #1104

Closed

Description

@ndinev

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

Activity

  1. darind commented on Jul 4, 2018

    @darind
    Collaborator

    @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

  2. self-assigned this
    on Jul 5, 2018
  3. added this to the 4.2.0 milestone on Jul 10, 2018
  4. self-assigned this
    on Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions