How to change Android minSdkVersion in flutter project

前端 未结 4 1542
梦毁少年i
梦毁少年i 2020-12-04 20:50

I was trying to start a flutter project for an App using bluetooth to communicate. For that, I was using flutter blue.

Unfortunately, when trying to run (on an Andro

4条回答
  •  天涯浪人
    2020-12-04 21:11

    You can change the minSdkVersion in the file Project_Name/android/app/build.gradle , defaultconfig :

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.projectname"
        minSdkVersion 16 // <--- There
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    

提交回复
热议问题