Why can't I create an AVD targeting Google API's - android

The problem I'm having is I've downloaded the Google API's and can't seem to select them as the target for an AVD ?
Included a screenshot to clear up a few things. Like that I've actually (as far as I can tell installed the Google APIS)
When I try to select Google APIS as a target the only option is Android 4.4 API Level 19

Restarting Eclipse will help you!

Related

AVD Google API's do not display available CPU/ABI

I have downloaded SDK tools and installed Google API's Intal x86 Atom image, however when I want to create my AVD it sais there is no system images installed for this target. BUT I have downloaded everything. I am using Ubuntu, on Windows machine same configuration works perfect, also for my colleagues same configuration works just fine.
If I select as target Android API 23, not Google API's it's okay, but I don't need Android API, since it's not working for me. I saw lots of reported defect, but none of them could help me.
Anyone has any idea that's going on there?
I had the same problem myself today and I found a bug report:
https://code.google.com/p/android/issues/detail?id=210223
To quote the solution:
There seems to be some underlining refactoring which means the configuration now required is:
Target = Android X.X - API Level XX
CPU/ABI = Google APIs Intel Atom (x86)
So, to create a new AVD with Google APIs support, just don't pick Google APIs as the Target. Pick generic Android with desired API level as the Target and then pick your desired Google APIs version in CPU/ABI. It works just fine, you will get Google Maps etc. on the AVD.
About that "but I don't need Android API, since it's not working for me" - I'm not sure what do you mean. You can't have Google APIs without using Android APIs, because Google APIs are running on Android device.

My android virtual device doesnt recognize when I update my code

My problem is that my Android Virtual Device (AVD) doesnt update when I update my code.
For instance, I run the AVD with my first code. Then I make some changes in the code (removing stuff and adding stuff). But still, the things that are shown on my AVD are from the old code. Stuff that should be there because I removed it from the code are still there when I run my AVD. And of course the new stuff isnt there.
I do:
Save my new changes.
Restart my AVD
But still it doesnt work.
If I restart my computer the changes might appear... help!
What helped me sometimes was deleting the old apk that was saved. For some reason it wasn't running replacing the old apk to be installed on the avd properly.
Also...more info could help. Are you running the code through eclipse/android studio/command line? Is your android application native or running html with the help of phonegap?
There is no need to restart the AVD. The thing you have to do is to reinstall yout application. Clicking Run in Eclipse will do the job.
I used the wrong API for my development. I used 20 when my book told me 17.
The Target was wrong. Used: "Android 4.4W.2 - API Level 20" but needed to use: "Google APIs (Google Inc.) - API Level 17"
I thought a higher API would be able to handle all lesser API numbers.
I dont know the difference between Targets "Android 4.2.2 - API Level 17" and "Google APIs (Google Inc.) - API Level 17" though.
Anyway all my problems seems to be resolved now.

Do Eclipse need to install all APIs to see the benefits of different APIs

"Failed to find an AVD compatible with target 'Google APIs"
Will this mean that I need to download all APIs in sdk so that the AVD can play all applications sourced from different APIs?
Note : Downloading Higher API level SDK doesn't include Lower level SDKs
For Different API level testing you need to download Different SDK for Different Levles...
but in your case..
If you have already downloaded API 19 SDK you just have to select API Plateform for your project from project property..
For that.. Right Click on your Project->Properties->select Android->Select Android 4.4.2 (API 19 plateform) and then click on OK...
hope this helps..

Download android 2.3.4 API

I need to download Android api 2.3.4.
But when I start Android Sdk manager, It shows me all the api options to download except Android 2.3.4.
Does anyone has idea how can i download android 2.3.4?
Thank You.
The API Level for the SDK is not quite the same as the version number for Android. Android version 2.3.4 corresponds with API Level 10, so just download API level 10 from the SDK and you should be good to go.
The 2.3.4 release was a maintenance release that only included internal fixes. No API changes were made: http://developer.android.com/sdk/android-2.3.4.html
Oddly, the second sentence of that release says that a new "Open Accessory API" was added in 2.3.4, so I'm not sure how that qualifies as no API changes ...
Looking in my downloaded "platforms" from the SDK manager, the android-10 platform seems to be based on 2.3.3 r2. I don't see any way to get a 2.3.4 image. (But I may be missing something.)
google only seems to have released the api for 2.3.1 and 2.3.3
When you will download Android SDK you will automatically get that API documentation in the SDK if updated.

Problem running google map in an android project

Am running a project on android using eclipse IDE , on trying to run the map view i could do that enabling the google map view and using the uses library . But when it comes to the AVD it shows an error. saying the target API is not ssupporting maps (I did try creating a new AVD). Please help me out
Please make your target as "Google APIs" corresponding to ur version which u want to use.
From the name of your emulator.. I guess you will be using an app which has maps. If yes, you need to create the AVD using Google API with the right API Level (and not normal AVD). If you can't find Google API within your "Android SDK & AVD Manager", you need to install from the "Available Packages" option

Categories

Resources