Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

[QUESTION] - minSDK #18

Closed
TurKurT656 opened this issue Aug 19, 2019 · 1 comment
Closed

[QUESTION] - minSDK #18

TurKurT656 opened this issue Aug 19, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@TurKurT656
Copy link

TnQ for this great lib.
however when i want to add this lib it gives me this build failure:

Manifest merger failed : uses-sdk:minSdkVersion 18 cannot be smaller than version 21 declared in library [uk.co.brightec.kbarcode:kbarcode:1.0.3] C:\Users\satari-s\.gradle\caches\transforms-2\files-2.1\a77019e964680a36c49ac5f39ad6b767\AndroidManifest.xml as the library might be using APIs not available in 18
	Suggestion: use a compatible library with a minSdk of at most 18,
		or increase this project's minSdk version to at least 21,
		or use tools:overrideLibrary="uk.co.brightec.kbarcode" to force usage (may lead to runtime failures)

Is it possible to decrease the min sdk version?

@TurKurT656 TurKurT656 added the enhancement New feature or request label Aug 19, 2019
@alistairsykes
Copy link
Contributor

This library is based on the camera2 APIs. I'm afraid these APIs have a min SDK requirement of 21. So unfortunately if you need min SDK 18 for your project then you won't be able to use this library solely.

You could either use it for some users, or in combination with another library which uses camera1 APIs.
The camera1 APIs are deprecated, but still supported in newer versions of Android, so if you only wanted to implement one library then you would need one which uses those.

Link to more information about this project:
https://github.com/brightec/KBarcode/wiki/Under-the-Hood

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants