Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ndinev opened this issue Jul 3, 2018 · 1 comment
Closed

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

ndinev opened this issue Jul 3, 2018 · 1 comment
Assignees
Milestone

Comments

@ndinev
Copy link

ndinev commented Jul 3, 2018

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

@darind
Copy link
Collaborator

darind commented Jul 4, 2018

@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

@darind darind self-assigned this Jul 5, 2018
@darind darind added this to the 4.2.0 milestone Jul 10, 2018
@vhristov5555 vhristov5555 self-assigned this Jul 17, 2018
vhristov5555 pushed a commit to NativeScript/nativescript-cli-tests that referenced this issue Jul 23, 2018
…d#1119. Also fix all tests which call nativevi dependency.
vhristov5555 pushed a commit to NativeScript/nativescript-cli-tests that referenced this issue Jul 25, 2018
…d#1119. Also fix all tests which call native dependency. (#158)

* Add tests for issue NativeScript/android#1104 and NativeScript/android#1119. Also fix all tests which call nativevi dependency.

* Remove Sleep steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants