Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing Google APIs for API Level 25

In the Android SDK Manager, I am unable to find the Google API for API Level 25. Because of this I am unable to set the compileSdkVersion to 'Google Inc.:Google APIs:25'. I am using MapActivity in my application and due to incompatible sdk version com.google.android is not supported.Is there any other way to make this work without Google API ?

like image 973
Karthikeyan P Avatar asked May 10 '17 12:05

Karthikeyan P


People also ask

Which API level to use Android Studio?

When you upload an APK, it must meet Google Play's target API level requirements. New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level 30) or higher.

Are Google APIs free?

All Google APIs are available completely free of charge.

What is target API in Android?

The Target Android Version (also known as targetSdkVersion ) is the API level of the Android device where the app expects to run. Android uses this setting to determine whether to enable any compatibility behaviors – this ensures that your app continues to work the way you expect.


3 Answers

You need to enable "Show Package Details" from SDK manager to see the available api levels. By default, this option is disabled from Android Studio 2.3.

enter image description here

like image 88
Prokash Sarkar Avatar answered Oct 07 '22 05:10

Prokash Sarkar


Few days ago had same problem and have tried

dependencies {
compile 'com.google.android.gms:play-services:11.2.0'
compile 'com.google.android.gms:play-services-maps:11.2.0'
compile 'com.google.android.gms:play-services-location:11.2.0' 
}

but I keep getting error, so therfore I tried

 dependencies {
    compile 'com.google.android.gms:play-services:10.0.1'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.google.android.gms:play-services-location:10.0.1' 
    }

although it is old version but worked for me so I suggest you to try.

like image 20
Dream Developer Avatar answered Oct 07 '22 06:10

Dream Developer


Try this, it's useful for you:

apply plugin: 'com.android.application' 


dependencies {

    compile 'com.google.android.gms:play-services:11.2.0'
    compile 'com.google.android.gms:play-services-maps:11.2.0'
    compile 'com.google.android.gms:play-services-location:11.2.0' 
}
like image 24
karthik Dhanajeyan Avatar answered Oct 07 '22 07:10

karthik Dhanajeyan