Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Find Google APIs for Android SDK

Tags:

android

sdk

api

I've been trying to create an application that uses Google Maps and upon getting an error for "MapActivity" I searched the web and found the solution was to make my build target "Google APIs".

However, I looked in the "Android SDK and AVD Manager" in Eclipse, I could find it anywhere :(

I looked under "Third part Add-ons">"Google Inc" but it simply says "No packages found".

Any help, please?

like image 326
shamsad97 Avatar asked Oct 20 '11 19:10

shamsad97


People also ask

How do I fix Android SDK not found?

The Cause for this error -SDK tools package might not be installed. Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

Where do I put Google API key on Android?

Let's copy that key and go to Google API Console. Open the API key which is used for the release version. Under Key restrictions, go to Application restrictions and select Android apps. Enter the application package name and paste the key copied from Google Play Console.

How do I fix Android SDK file not found ADB?

To solve this Error:Make sure you have installed "Android SDK Platform-Tools". When you install "Android SDK Platform-Tools", it will fix Android SDK file not found: adb error.


1 Answers

I encountered the same problem

Go here to manually download the Google APIs. For example, I use GoogleAPI level 8, so I download the package here

After downloading just extract the zip file to "C:\Program Files (x86)\Android\android-sdk\add-ons" and rename the directory to "google_apis-8" instead of "google_apis-8_r02".

like image 155
AlanS Avatar answered Oct 14 '22 09:10

AlanS