joey joey - 1 year ago 122
Android Question

Android Requires MinSdk <=9

When I am trying to make a new Google Maps Activity, its grey and I cant click the option.

(New --> Google --> Google Maps Activity (Requires MinSdk >=9)

I got the same message when I create a new app and try to choose the activity while setting up a new project.



And when opening the SDK manager in Android Studio I got the following SDK tools.
enter image description here

Can someone tell me if Im missing something?

Answer Source

In your application level build.gradle file do you have minSdkVersion 9 or greater than 9 like this:

    defaultConfig {
        minSdkVersion 15 //this should be greater than or equal to 9
        targetSdkVersion 23
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download