1

I can't create a new window on Android Studio. Error message shown in red "Selected activity template has a minimum SDK level of 9" how can I solve this issue ?

enter image description here

Siddharth Lele
  • 26,905
  • 15
  • 91
  • 144
Fahda.Shalhoub
  • 709
  • 1
  • 6
  • 10
  • 1
    Possible duplicate of [Changing API level Android Studio](http://stackoverflow.com/questions/19465049/changing-api-level-android-studio) – Tim Biegeleisen Nov 02 '16 at 04:50

4 Answers4

0

Chose an higher minimum API level (at least 14 for this template). Go back to the first step and change the minimum api level.

LoveAndroid
  • 176
  • 11
0

Selected Activity template has a minimum SDK level of X

Android Studio says so, because you've selected Minimum SDK version to be less than X. in you case SDK version less than 9 in the previous option.

See this:

enter image description here

I'd get the same error as yours, as I've set Minimum SDK to be : Android 1.1.

FIX:-

Choose an SDK version higher than 9.

In your case, it's ideal to choose API 16: Android 4.1(Jelly Bean) and above as more features would be supported from this version onwards.

Community
  • 1
  • 1
OBX
  • 5,586
  • 6
  • 25
  • 67
0

You have to open build.gradle and change the minSdkVersion to 16. Then, you have to rebulid the project. I fix that issue by this way

0

You need to go to the build.gradle(module)file and change the minSdkVersion to 16 and then rebuild the project in order for Android Studio to have context on the change.

  • 1
    Welcome to SO. Though we thank you for your answer, it would be better if it provided additional value on top of the other answers. In this case, your answer does not provide additional value, since Bryam Guzmán already posted that solution. If a previous answer was helpful to you, you should vote it up once you have enough reputation. – aUserHimself May 16 '21 at 10:20