How can I alter the Android minSdkVersion in a Flutter project?

zoyaa10

Member
OP
Newcomer
Joined
Dec 5, 2022
Messages
5
Trophies
0
Age
24
XP
32
Country
India
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.
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?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Here's one thats even better. https://youtu.be/Wx5HOQuP7Xk +1