How to change the minSdkVersion of a project?

后端 未结 9 1077
夕颜
夕颜 2020-12-08 00:19

I have been building a project and testing it on the Android emulator.

I realized that I set the minSdkVersion to 10. Now, I have a phone to test the p

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 00:27

    In your app/build.gradle file, you can set the minSdkVersion inside defaultConfig.

    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.3"
    
        defaultConfig {
            applicationId "com.name.app"
            minSdkVersion 19    // This over here
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
        }
    

提交回复
热议问题