Changing API level Android Studio

前端 未结 14 1187
星月不相逢
星月不相逢 2020-11-22 09:01

I want to change the minimum SDK version in Android Studio from API 12 to API 14. I have tried changing it in the manifest file, i.e.,



        
相关标签:
14条回答
  • 2020-11-22 09:44

    As well as updating the manifest, update the module's build.gradle file too (it's listed in the project pane just below the manifest - if there's no minSdkVersion key in it, you're looking at the wrong one, as there's a couple). A rebuild and things should be fine...

    0 讨论(0)
  • 2020-11-22 09:49

    In android studio you can easily press:

    1. Ctrl + Shift + Alt + S.
    2. If you have a newer version of android studio, then press on app first. Then, continue with step three as follows.
    3. A window will open with a bunch of options
    4. Go to Flavors and that's actually all you need

    You can also change the versionCode of your app there.

    0 讨论(0)
  • 2020-11-22 09:49

    For the latest Android Studio v2.3.3 (October 11th, 2017) :
    1. Click View on menu bar
    2. Click Open Module Settings
    3. Open Flavors tab
    4. Choose Min Sdk version you need
    6. Click OK

    0 讨论(0)
  • 2020-11-22 09:50

    If you're having troubles specifying the SDK target to Google APIs instead of the base Platform SDK just change the compileSdkVersion 19 to compileSdkVersion "Google Inc.:Google APIs:19"

    0 讨论(0)
  • 2020-11-22 09:51

    In build.gradle change minSdkVersion 13 to minSdkVersion 8 Thats all you need to do. I solved my problem by only doing this.

    defaultConfig {
        applicationId "com.example.sabrim.sbrtest"
        minSdkVersion 8
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    
    0 讨论(0)
  • 2020-11-22 09:51

    File>Project Structure>Modules you can change it from there

    0 讨论(0)
提交回复
热议问题