I'm trying to install the Google APIs so that I can use Google Maps in my application. The problem is simple: SDK Manager doesn't have the link that it needs to query the servers for libraries to install.
The links I have in Help, install new software, available software sites are : https://dl-ssl.google.com/android/eclipse and http://download.eclipse.org/releases/helios
What link do I need in order to properly download the Google APIs?
I cannot extend my Activity to MapActivity even though the manifest has <uses-library android:name="com.google.android.maps", I have an api key, and my main.xml has the <com.google.android.maps.MayView tag.
Thanks,
The links I have in Help, install new software, available software sites are : https://dl-ssl.google.com/android/eclipse and http://download.eclipse.org/releases/helios
Those are for Eclipse. Eclipse is not Android.
What link do I need in order to properly download the Google APIs?
You do not need a "link".
Step #1: Choose Window > Android SDK Manager from the Eclipse main menu
Step #2: Check the checkboxes beside any "Google APIs" you want, for different API levels
Step #3: Click the "Install packages..." button and follow the prompts, then close up the SDK Manager
Step #4: Select your desired project, and choose Project > Properties from the Eclipse main menu
Step #5: In the Properties window, choose Android, then set your build target to be one that has the Google APIs:
Related
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
I am using Android API level-8(i.e. Android 2.2 Froyo). I want to add the new api level-5 ( i.e. Android 2.0 Eclair).
I have updated avd manager but the api level-5 can't display.
When I import the project in workspace the right click the project select android tools and fix the Project properties then Display this type error in console
Unable to resolve target 'android-5'
You should clarify what you mean by add.
If you mean add another OS image, then you should use the Android SDK Manager.
In the package name you should find the Android 2.0. If you didn't have it installed, then install it and create a new OS Emulator with this OS version.
There's a topic already discussed here. Link
If you mean you want to build against Android 2.0, you should simply right click on the project, go to properties, and then Android. You should see a list of targets. Simply check the one right for you.
Go to sdk manager and install required lvl from it
Goto window->android sdk manager and check the boxes you want to install. One of the checkboxes also concerns the avd, install it and then goto window->avd manager to create a new AVD.
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!
I'm doing small GPS project. Before I work on 32-bit laptop and I had option Target device:
2 x per every API. one was from Google and second from device. my laptop went down. I've bought new one 64-bit. I've installed every thing from beginning and now I don't have Google API option when I'm beginning new project. And when I try to add any libraries to an existing project I have also not even a single one to pick. I've had reinstall everything 3 times and nothing, so now
I have only one option - add it manually to my project.
Where I can download Google Maps API for Android, and how to add them to my existing project manually
You can install the Google API targets by opening the SDK and AVD manager. Either go to Window -> SDK and AVD Manager inside eclipse or start the android application from the ANDROID_SDK\tools folder.
When open, select Available packages on the left, then open the Android Repository tree. There should be various google APIs listed. Check the ones with the API levels you need and click Install selected. After everything went through, you can start a new project with the desired google APIs.
I want to create new class MapActivity from Eclipse.
I go File-> New -> Class on Superclass-> Browse, and when I type MapActivity there is no results.
In Windows-> Android SDK and AVD Manager there is no new updates, I have installed SDK from version 1.5 to 2.2
Can some one help me with this?
Thanks
You need to select GoogleAPI by Google Inc package installed , create an AVD profile using the same and then use map activity..This should help you ...
The steps Ravi mentioned are necessary, but to get things working in your existing eclipse project, without creating a new one, change the build target:
Project Properties->Android->Google APIs (x)
Make sure you have the "Google APIs by Google Inc." package installed for the API version you're using. MapActivity isn't included in the standard Android API.
1) Make sure you build target has Google APIs included. In eclipse this is done in project properties in the android menu.
2) If using emulator - the AVD must also target an api with Google APIs included.
3) Add <uses-library android:name="com.google.android.maps" /> as child (inside) the application-tag in your manifest.
If you are using eclipse id, then click on AVD Manager and then it will show you the list of installed as well as un-installed packages. Select Google api packages and click on install. Then you will not this problem.
See the details