Android: No compatible targets were found yet AVD available - android

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.

Related

android: requires previous sdk support even if min sdk version is higher?

I am new to Android Development and I tried to import an Android Application in to my Eclipse (ADT).
But , I am getting an error saying :
Unable to resolve target 'android-8'
But , I checked in the manifest file that , the min sdk and target sdk are set as follows:
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
Then , why am I having an this error? Why do I require API 8 , even-though the application supports min sdk 11 ? The Application has Facebook and GCM integrated into it?
Is it because of this? Or , are there any classes that require API 8 support?
I am getting confused and not able to find a satisfactory answer.
Thanks.
You application has set Android 8 as target version. Change it from properties option
Right click the project and click "Properties".
Then select "Android" from left. You can then select the target version from right side.
Always try to select the highest available target version. Currently go for Android 19 (4.4.2 Kitkat).
annotations.ja‌​r is a 2kb file try to download online if not
copy ..\android-sdk\extras\android\support\annotations\android-support-annotations.ja‌​r and copy it to ..\android-sdk\tools\support\
you have to open up SDK manager and simply installed API level 8.

Android AVD with lower API level

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.

Android emulator compatibility with Google APIs

I wrote a simple code which implements MapView using Eclipse and ADT plug-in updated today. in order to test it I created a new emulator based on Galaxy Nexus device and target for Google APIs level 17. The emulator has been created without errors and starts properly.
I set project properties for targeting Google APIs. I compiled the project and I tried to run in on my emulator, but I got a warning message: No compatible targets were found, Do you wish to add a new Android Virtual Device?
Independently on the button I click, a new avd windows appear and my new emulator is highlighted by a red cross instead of the green check sign.
I can choose to ignore the warning and continue with my emulator, but my application blocks before reaching main activity onCreate() method I am sure because I have placed a breakpoint inside the method which is never reached.
I added internet permission tag to manifest ans API keycode I got from Google.
Is anyone able to explain me what is the problem with my project?
Thank you very much.
If you used Google APIs level 17 as the target of your project, make sure your emulator's API level is also 17.
You could have possibly created an emulator using Google API but the API level is different.
To check the emulator's API level, open your AVD, then confirm if target name is Google APIs(Google Inc.) and API level is 17.

No compatible AVDs with target 'Google APIs'

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.

Testing an Android app on an AVD with an API level lower than the target on Eclipse

I'm developing my Android app with target set to 15, but would still like to test the app on lower API levels. When the 'Android Device Chooser' dialog opens however, AVDs with a level lower than 15 are not shown, even though the minSdkVersion is set to 10 in AndroidManifest.xml. How can I run my app on an API level 10 AVD?
In AndroidManifest.xml:
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
In project.properties:
target=android-15
Converted from comment:
Start the AVD first then, when trying to run the app from eclipse, it should either automatically use the one that's running or at least prompt you to use it.
Go to SDK Manager and open the tab Android 2.3.3. Download the SDK Platform and the Intel x6 Atom System Image + Restart Eclipse!

Categories

Resources