I attempted to create a flutter application that utilizes bluetooth to communicate by utilizing the flutter blue package.
I was met with an error when attempting to run the first example I created on an Android device.
I was unfamiliar with how to increase the Android minSdkVersion for a Flutter project using VSCode, as I am more familiar with doing this on Android Studio.
Can you increase the minSdkVersion with Flutter, and if so, how?
I was met with an error when attempting to run the first example I created on an Android device.
Code:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:flutter_blue] /home/maldus/Projects/flutter/polmac/build/flutter_blue/intermediates/manifests/full/debug/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="com.pauldemarco.flutterblue" to force usage (may lead to runtime failures)
I was unfamiliar with how to increase the Android minSdkVersion for a Flutter project using VSCode, as I am more familiar with doing this on Android Studio.
Can you increase the minSdkVersion with Flutter, and if so, how?