semlette / nfc_in_flutter

Cross-platform flutter plugin for reading and writing NFC tags. Not maintained anymore - not looking for new maintainer, fork instead.
MIT License
120 stars 119 forks source link

It's better to change minsdkversion to 17? #43

Closed ryanhz closed 4 years ago

ryanhz commented 4 years ago

In a flutter project created earlier, I got this error on build apk:

android/app/src/main/AndroidManifest.xml Error: uses-sdk:minSdkVersion 17 cannot be smaller than version 19 declared in library [:nfc_in_flutter] build/nfc_in_flutter/intermediates/library_manifest/release/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 19,
or use tools:overrideLibrary="me.andisemler.nfc_in_flutter" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

semlette commented 4 years ago

minSdkVersion=19 is intentional. I would like to add support for host card emulation in the future and that requires SDK v19.

Then again, SDK v19 released back in 2013.

The README was supposed to mention the minSdkVersion=19 requirement, but I guess I forgot.

ryanhz commented 4 years ago

Thanks for clarify, we are so looking forwards to HCE.