Eclipse/Android: can't install Google APIs targets - android

To use a MapView in my android application, I need to to run it in a "Google APIs (Google Inc.)" target. However, I can't figure out how to download one.
In Eclipse, Android SDK and AVD Manager -> Third party add-ons -> Google Inc. -> No packages found
Although I can see that they are a bunch of packages available when looking at the url
Same issue as here.
Here help would be appreciated!

For reference, here's how I solved this:
I updated my ADT
That gives me a new a new SDK manager in eclipse under Window. From there, I was able to install the missing API targets!

Related

How to solve error of installing Xamarin Google Play Services - GCM?

Severity Code Description Project File Line Suppression State
Error Could not install package 'Xamarin.GooglePlayServices.Gcm 42.1001.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Try to install this package:
Xamarin.GooglePlayServices.Gcm -Version 29.0.0.2
I had the same problem. I installed Xamarin.GooglePlayServices.Base 29.0.0.2
it works
You need to install version 29.0.0.1
I too have the same problem
the visual studio used - 2015
target framework - 7.0
install Nuget Google play map service tried to install 29.0.0.1/32.x.x.x/40.x.x.x/ 60.1142.0 nothing works
2 days to fix this issue...
Many things I checked as follows.
Check the VS Android SDK manager whether targeted SDK is installed or not
open -> Android SDK manager in VS -> go to extras -> install Google play services
go to tools in VS -> options -> xamarin -> other -> click now for check for updates and restart the system not VS only.
build your projects if google map again showing error, just select the google obj and press show potential fixes then take the last option as Using Android.gms.map which is already mentioned in the code.
I hope this will fix because it's worked for me.

unable to download android SDK versions and extra's(add ons)

I have downloaded new android setup bundle file with the name "adt-bundle-windows-x86" from the official android developers site (enter link description here) and followed the instructions specified in "Setting Up the ADT Bundle" option of the same site(http://developer.android.com/sdk/installing/bundle.html) to set up the development environment. i opened the eclipse as per the instructions from that site and checked for the platforms available and found only Android4.2(API 17) only. so i've decided to install and google maps api addon and previous versions. i.e 2.2 and above all versions.
But if i open eclipse -> Window -> Android SDK Manager i am unable to see the options to install any of the platforms and addons. showing the below screen shot only.
please help me to solve this issue.
One thing you could do is, go into he Android SDK manager:
Select into Tools/Options . Uncheck download cache and click in cleaar cache
Then Packages/reload

How can i install support library android?

I need to work with the android-support-v4, buy when i try to install it from SDK manager (support library), it does not show me the package, actually i wanted to install another API level, but i can not either, because the sdk manager does not show me any other API than the ones i have already installed. Here is an image of the SDK manager:
How can i show everything i need? (i already tryied with the obsolete option).
You're asking the wrong question.
Right-click on your project.
Select Android Tools > Add Support Libraries...
(a progress bar will appear, and voila it should download what you need)
By the way, you should really install the latest android-sdk update. From your screenshot, it doesn't look like you have yet.
click on "Packages" > "Show Obsolete Packages"
By "select android tools" you mean "select android sdk tools"? This one is not expandable, by the way. (at least not on my android sdk manager).
The "support library" does not appear in any of the other branches of the android sdk manager.
Is there any repository need to be added to the sdk manager in order to obtain the package?
I'm using MacOSX lepard and the latest sdk, and got the same screenshot as above.
With the new SDK Manager installed, you will find the "Android Support Library" under Extras (if sorted by API level) or under the repository "Google Inc" (if sorted by Repository).
I had exactly the same view as above, searched all over the Net, incl this post, and couldn't find anything. By the time I gave up, it suddenly showed in my listings. It seems that I had some network issues (possibly combined with latest version).
I too faced the same issue and figured out the below solution.
Tools -> Manage Add-on Sites -> Enable "Google Inc."

Cannot Find Google APIs for Android SDK

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.

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