How to change the minSdkVersion of a project?

后端 未结 9 1037
夕颜
夕颜 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:47

    check it: Android Studio->file->project structure->app->flavors->min sdk version and if you want to run your application on your mobile you have to set min sdk version less than your device sdk(API) you can install any API levels.

    0 讨论(0)
  • 2020-12-08 00:47

    Set the min SDK version in your project's AndroidManifest.xml file and in the toolbar search for "Sync Projects with Gradle Files" icon. It works for me.

    Also look for your project's build.gradle file and update the min sdk version.

    0 讨论(0)
  • 2020-12-08 00:47

    Open the app/build.gradle file and check the property field compileSdkVersion in the android section. Change it to what you prefer.

    If you have imported external libraries into your application (Ex: facebook), then make sure to check facebook/build.gradle also.

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