I am developing an android application and trying to launch it on an AVD. The API is set to Android 2.3.3. I have a 2.3.3 emulator (sdk version 10), and the android manifest reads:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="10" />
I changed the target to 10 to match the api I have included in the project. How do I resolve this error:
[2013-01-30 23:18:47 - kiloboltandroidframework] Failed to find an AVD compatible with target 'Google APIs'.
[2013-01-30 23:18:48 - kiloboltandroidframework] Still no compatible AVDs with target 'Google APIs': Aborting launch.
While creating a new Android virtual device , select the Target as Google API - API Level 10
Android Api level 10 is different from Google Api level 10. Android comes with only android.jar file white Google Api comes with android.jar as well as maps.jar. your project might require Google Api's and you haven't installed them. To Install Google Api's go to SDK Manager and check. If they are already installed, then create a AVD with Google Api level 10 platform.
Failed to find an AVD compatible with target 'Google APIs'.
=> Means that you haven't create any AVD with Google API, but yes you have implemented functionality which uses Google APIs, like Google Map.
Find in snap how to install Google API, soon after installing create an AVD with the same Google API.
You need to create an AVD that uses the Google APIs Add-on. See here .
Start the other VM from VDM which has Target api is "Google APi" and Platform is 2.3.3. if your don't have any google api in your VDM (Virtual Device Manager) than please download it. Start that once And than run your project.
Related
I am building an Android app that has Google Maps v2. The map requires the Google Play services. I want to test the app in the emulator running API level 17 (Android 4.2.2).
I have downloaded the Google API package from the SDK manager. Then I created a virtual device for it. When I start the emulator I am presented with the following error.
Cannot launch AVD in emulator. Output: emulator: This AVD's configuration is missing a kernel file!! Emulator: ERROR: ANDROID_SDK_ROOT is undefined.
What should I do to test Google Maps v2 in Android 4.2.2 emulator?
My virtual device configuration:
For sdk 17, you need to download intel x86 Atom System Image with the Google APIs (as you have)
Then Choose x86 Android and create it. It works for me, but will not show maps due to lack of internet connection.
For adk 20 and higher:
When you first select create virtual device, you need to pick an image with the google apis.
So this is the step before the screen shot you've shown.
"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..
When I Run As > Android Application I get the "No compatible targets were found" dialog box. The Log says:
Failed to find an AVD compatible with target 'Google APIs'.
The Manifest states:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
however it appears I have a compatible AVD. For example, I have AVDs with API Level 8, 10 and 16. Here's a screenshot:
Given this, why am I getting the "No compatible targets were found" dialog box and how do I avoid it?
====
UPDATE
When I click No to the "No compatible targets were found" dialog box I get the Android Device Chooser dialog. I can then select an Android device (in the Launch New Android Device section), click OK and the app launches. So, clearly I do have a "compatible target".
UPDATE 2
I have the Google APIs installed. E.g. see this screenshot:
UPDATE 3
I also have the Google APIs installed for API Level 17. E.g. see:
//you need to install Google API
you have only installed Android API your SDK didn't have Google APi >10
your android:targetSdkVersion="17"
so install
Google APIs 4.2.2
Install google API's also , you have installed only sdk's..
From sdk manager install google api for api level 17.
guys i fixed it ....
i had the same problem, and i fixed it by installing the samsung
kies for here: Download Samsung Kies.
One of the requirements of Google+ platform for Android on the developers.Google.com site is that you must have
A physical device to use for developing and testing because Google Play services can only be installed on an emulator with an AVD that runs Google APIs platform based on Android 4.2.2 or higher.
Since i do not have a Android powered device, what emulator if any can i use in place of this?
This is to say, if you wnat to test GooglePlay service on an AVD, you should create a AVD with a minimum API level 17 (4.2.2)
API level is an option you must configure when you create a new AVD.
A bit of a silly question, but I am trying to play around with supporting different Android API levels and created a simple application which has the following SDK version settings:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
I have a device to test on which has the latest version installed, but when I am trying to create AVD with lower version API I can't choose any other option apart from the latest one (18) as nothing is available in the list. I've tried a variety os sample devices with no luck. How can I create an AVD with API level 8 or 10?
Download that sdk level and emulators for the level from the Android SDK manager. If the sdk is set up properly, simply type android in the command prompt and it should show up.
Download:
Sdk platform
System image
for API you want to use from Android SDK manager.