Changing API level Android Studio

前端 未结 14 1520
星月不相逢
星月不相逢 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:32

    According to this answer, you just don't include minsdkversion in the manifest.xml, and the build system will use the values from the build.gradle file and put the information into the final apk.

    Because the build system needs this information anyway, this makes sense. You should not need to define this values two times.

    You just have to sync the project after changing the build.gradle file, but Android Studio 0.5.2 display a yellow status bar on top of the build.gradle editor window to help you

    Also note there at least two build.gradle files: one master and one for the app/module. The one to change is in the app/module, it already includes a property minSdkVersion in a newly generated project.

提交回复
热议问题