How to change target build on Android project?

后端 未结 13 600
傲寒
傲寒 2020-12-04 11:01

I currently have an Android project in Eclipse.

I created it with a target build of 1.5 (sdk 3).

Now I want to change it so that it has a minSdk of 3 and tar

13条回答
  •  北海茫月
    2020-12-04 11:29

    as per 2018, the targetSdkVersion can be set up in your app/build.gradle the following way:

    android {
        compileSdkVersion 26
        buildToolsVersion '27.0.3'
    
        defaultConfig {
           ...
           targetSdkVersion 26
        }
        ...
    }
    

    if you choose 26 as SDK target, be sure to follow https://developer.android.com/about/versions/oreo/android-8.0-migration

提交回复
热议问题