Cannot Find Google APIs for Android SDK - android

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?

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".

This happened to me.
The simple fix was to update currently installed packages, which in turn updated the SDK Manager app, then after restarting, every appeared including the USB drivers.
Apparently, if the SD Manager is outdated, then you won't be able to install important thing like the USB driver.

If you're using the latest version of the SDK (ADK 14), the Google API packages should be located in the folder containing the appropriate SDK level in the SDK manager.
For example, for Android 2.2, there should be a folder called "Android 2.2 (API 8)" which should contain the SDK "SDK Platform" and additional pieces such as the Google APIs "Google APIs by Google, Inc.".

I met the same problem and it said "access is denied".
I am using 64bit win7 and the sdk tools is installed under C:\Program Files (x86)\Android\android-sdk.
I figure out that it is because the SDK manager does not have permission to the folder so the quick fix is to right click SDK manager and run it as administrator.

I found that working with the Motorola Development studio made things very easy to pick up various API levels from Google. You can find all of the download and documentation at
developer.motorola.com

Sometimes Google Server is down or return 502 error, so you cannot find any manifest file. This happened to me. The solution is to wait for a couple of minutes.

Run as Administrator did the trick from me in Windows7. SDK mgr is showing all extra google apis too after this.

I faced the same problem.
Restarting the Eclipse & SDK manager solved the problem. After Restart, all the GOOGLE API and other stuff are visible under the respective Build.
If this dont show any change, Invoke the SDK Manager.exe as ADMINISTRATOR and this will solve the problem

Try clearing your cache (Tools > Options > Clear Cache), then
reloading (Packages > Reload), and see if that helps.

If it is an old package it is possible that it is obsolete and the SDK manager wont show it by default. Go to "Packages" Tab and select "Show Obsolete Packages".

Reinstalling SDK manager and ADT solved the problem.

Related

Android SDK Manager not showing any packages to install

I'm having a problem in the Android SDK Manager in which it doesn't show that I have any packages available to install:
When I first installed the SDK, the only line I saw there was the Android SDK Tools. I was able to add the Platform-Tools and Android 4.2 package my copying and pasting from the Android ADT bundle that I downloaded separately.
The log is showing no issues:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
And I can see available packages when I open up the XML the package URL returns.
Things I've tried:
1. Messing with the proxy in Tools > Options. I've tried both 127.0.0.1 and blank.
2. Opening the SDK Manager from Eclipse and directly (regular and as Administrator)
3. Uninstalling and re-installing the Android SDK. Downloading the latest versions of everything.
My system:
Windows 7 x64
Eclipse 4.2.1 Juno
SDK Manager 21.1
ADT 21.1
Any ideas? I suppose I could download the files by pulling URLs directly from the XML, but that isn't ideal.
Edit:
Since I can pull the repository-7.xml file using a browser, this doesn't look like a Firewall/AV/Network setup issue. It's a matter of the SDK Manager not loading up the package information it pulls back through the XML.
I got the same problem. For me the solution was putting a check on the "Force https://... sources to be fetched using http://..." box. It's on Android SDK Manager's preferences screen, below the proxy settings.
Also if this doesn't solve your problem, instead of downloading SDK again, I suggest you to download the Adt Bundle
So I was finally able to see all of the available packages. I accidentally hit the SDK Manager icon in Eclipse instead of the AVD Manager I meant to press:
And all of the available packages showed up.
Also, now when I open the SDK Manager using any of the other methods (directly from SDK directory or using the Window > Android SDK Manager menu option in Eclipse) all of those missing packages are now showing up.
i had the same problem.
and nothing works for me, nor clearing cache, nor restart eclipse, nor running sdk manager from eclipse, nor forcing https (from sdk manager options)
but every thing works fine when i used proxy!!
sdk manager-> tools-> options -> http proxy server
I know that I'm kind of late to the party, But I wanted to share my experience with this issue.
It turned out that the underlying Logger module used was the SL4J Android edition. Because I had overridden the version (using an external JAR file) that the SDK Manager used, a lot of things went wrong when it tried to load the Logger class. I discovered this when i tried to run
android-sdk\tools\android.bat update sdk --no-ui
which showed me an exception thrown by the ClassLoader of the logger module. Removing every trace I had of the SL4J modules in my %JAVA_HOME%\jre\lib\ext folder solved ALL of my problems.
I know this is old, but just wanted to add for posterity. I had this same problem and it turns out I had previously ran the SDK Manager as root (Ubuntu Linux). My user account didn't have permissions to overwrite the files and update the list. Once I corrected the permissions, it ran fine.
On Windows, if you are running the SDK Manager directly from ~Android\android-sdk directory, just right click and Run as administrator. That did the trick for me anyway.
Are you opening the Adroid SDK when you unzipped the folder downloaded?. Becouse i had a problem like you, and the solution was that i am taking a wrong folder path.
What i did:
Downloaded again the sdk and put it in C:/ (Another Path)
Check in this path if i get the same result.
install the new tools and android version from the new path.
becouse i see that u have your folder in C:/ProgramFile/Android......... and i have in this path only that i have installed.
Open Android SDKManager->Android SDK->SDK Update Site
Click on Launch Standalone Android SDK Manager you will see the packages.
On SDK manager go to tools -> options and select force https checkbox; now you should see all

SDK manager does not show sample package option

I followed the android developer link to install sample package.
However, when I expand the package list of Android platform, there is no "Sample for SDK" option (checkbox) available. Why??
I have installed Android from version 2.3.3(API10) to 4.0.3(API 15), none of them contain the option for downloading sample package. Why?
Anyone has the same problem?
//you need to download it there is an option for that.
if it show already installed you need to go to the folder called <sdk>/samples/
Actually its not there in that folder <sdk>/platforms/<android-version>/samples/
You probably need to update the Tools packages.
Install the updates (may need to do this multiple times) to get the latest version. Then close the Sdk manager, reopen it and the sample package should be available!
Me too faced same problem.. I found solution here go to this link and download samples for all versions of sdk
http://www.hariadi.org/android/manual-download-of-android-sdk-components/

How to install older Android SDK in Eclipse

I'm working at the moment at a simple app in eclipse for android. Just receiving and sending data, and using the camera API.
I've set the minSDKversion to 8, because I think that has the widest user base. But at the beginning of the project eclipse was asking me which target SDK version I would use, and because I had just one installed (the latest 4.0.3) I've took this.
Now I'm asking me if it wouldn't be wiser to install a lower SDK, like Android 2.2, because it would be not that big (compared to the 4.0.3) and my app would not have included all the fancy new features, which are not used in any way?! Or is this complete nonsense I'm talking here, and just should take my 4.0.3 SDK? When not, how can I install a lower version? Help -> SDK Manager is not showing old SDKs...
Here is a very helpful link that will probably answer your question: http://developer.android.com/sdk/installing/adding-packages.html
Basically, open up the Android SDK manager and it should give you a list of packages that you can install! From there you can choose old SDKs!
hey i faced the same issue as yours
usually while updating due to this error , it is unable to fetch the older SDKs
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found
This is how you can fix it :
1) Go to Window > AndroidSDK Manager
2) select tools> options
3) set the proxy (if u r sitting behind proxy)
4) in checkboxes check Obsolete option (in Android SDK Manager)
5) go to Packages > reload (in Android SDK Manager)
This worked for me
In case you are using windows7 .
Go to Android SDK Manager location > right click > Run as Administrator
Best Regards,
Ashwani kumar
I was having a problem with this also. I tried all of the things listed in the other answers here and nothing worked. I went into Tools/Options (in the Android SDK Manager) and checked "Force https:// sources to be fetched using http://" and reloaded and the older APIs magically appeared.
if u want minSDKversion from its maxSDKversion
1.select maxSDKversion and delete all old pakages .
2. after doing it sdk manager will show all its older versions .
3. select required version and install all packages again.
:) :)
it worked for me .. just try .

Can't update installed packages in AVD Manager

I've recently tried to add packages to the SDK through the AVD Manager but I get file not found as an error when the manager goes out to find available packages. I looked at the SDK website but didn't find any resolution.
It looks like for some reason the repository path may have changed but I don't see a way to change it in the Manager.
So basically I don't see any available packages.
I wanted to install the 3.x packages to support tablets. If anyone has any idea I would appreciate any input.
thanks
I had a similar problem.
Solution:
Download the latest ADT plugin
and then the lastest SDK for your OS.
After setting up, downloading required packages should be easy.
Ensure your connection doesn't have a proxy, if it has you will required the necessary credentials.
Uninstall, download a fresh version and reinstall the entire program, it was recently updated to a new version, maybe yours missed out?

Android SDK and AVD Manager installation

I am new to android development.
Have tried a couple times downloading the Android SDK and ADT plugin for Eclipse
In the Android SDK and AVD manager load fine but will not load any available packages.
Show:
- Android Repository
--"Some packages were found but are not compatible updates"
In the installed it shows 1.5 to 2.3 SDK platforms.
How to I get them available.
Appreciate help.
Thanks,
Alex
You can use following step:
1. window ->
2. customize perspective ->
3. command group availability tab ->
4. on the check box android SDK and AVD manager check it ->
5. click on ok
I had the same issue. Googled arround found nothing, and gues what:
It was the a checkbox in the main Android SDK and AVD Manager.
Click: available packages
Then select: Android Repository
Then you see the "some packages were found but are not compatible updates" message, which is why you created this question.
On the bottom of the form, you can see: 4 buttons and 1 checkbox.
Make sure you Uncheck: "Display updates only" when it is unchecked, you see the whole SDK list with Android 3.2 etc.
Steps for installing Development Environment.
Download Android SDK and Install it.
Install Android API’s for different android versions. The latest version is Android 2.3.
Download and Install Eclipse Install ADT plugin.
Create AVD (Android Virtual Device) for testing the applications.
I think you did not linked your Android SDK folder with Eclipse ADT plugin. Goto Window->Preference->Android browse your Android SDK if you have installed ADT plugin.
There are many resources available online. Here is a blog post where you find some good links to resources which help you in installing Android Development Environment.
Getting Started with Android
If you still didn't able to do it. Let me know your specific problem, where you got struck.
I think there is already an answer that probably works for most people (unchecking the box), but since that did not work for this install I have on Linux Mint, this did work:
(not my website)
http://blog.netscribe.us/blog/post/Step-by-Step-Guide-on-How-to-Install-Android-SDK-Offline-%28not-completely-offline%29.aspx
Basically, download the zip for the package you want and extract it to /platforms/.

Categories

Resources