Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidStudio tells me my emulator is not compatible with my project, why, if emulator is api10 and project is api3?

I'm running NexusOne in the emulator, with android 2.3.3 (sdk10)

My project was android:minSdkVersion="3" android:targetSdkVersion="10" and when i try to run it on my nexusOne emulator (with 2.3.3.) it says that it's not compatible in the chooser window.

If I try to set this as the preferred emulator in settings, it will simply refuse to run and show a little alert saying it's not compatible.

enter image description here

i tried to change the manifest to even read android:minSdkVersion="3" android:targetSdkVersion="3" and still same result...

If i simply choose the emulator from the list, without selecting it beforehand, it shows not-compatible, but runs without any problem.

enter image description here

Any ideas why? (P.S. I have no idea why there is this white space... feel free to edit and remove :) the only thing in this white space is the image footnotes... which should not be rendered)

Edit: I thought I had solved the problem and wrote this wrong-answer while the SDK was downloading. But when it downloaded and I created a new AVD using android 2.3.3 (api10) the same thing occurred. Studio stills says it's incompatible.

Android studio installs it's own copy of the SDKmanager on a non-standard place.

The stand alone SDK Manager I already had, resides at:

C:\Users\You\.android

the android studio one is at

C:\Users\You\AppData\Local\Android\android-studio\sdk

But, AVD manager seems to save the AVD data in the same place, regardless where the SDK Manager is at. So the SDK Manager studio uses, thinks i'm missing the 2.3.3 api, but AVD manager knows where to get in the correct/previous place.

will just download the SDKs i need in both places... sucks not to be able to symlink

like image 358
gcb Avatar asked May 27 '13 19:05

gcb


People also ask

How do I fix an emulator problem?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How can I change my Android Emulator version?

Launch the emulator, tap "..." on the right-hand side panel, click Help > About. Go to Android Studio > Preferences, search for "Android SDK", click "SDK Tools", and then scroll to Android Emulator. On Mac, go to Terminal and run ~/Library/Android/sdk/emulator/emulator -version.

How do I run an APK file on an emulator?

This method is much simpler than 1st method. We just need the APK file to install it in the Emulator. First of all, we still have to open the Emulator and after that drag, your APK file and drop it in the emulator anywhere and that's it it will simply install that app in the Emulator.


1 Answers

The compatibility check is incorrect: https://code.google.com/p/android/issues/detail?id=55837

As far as the SDK goes, you can configure Android Studio to use the same SDK as the one used by Eclipse instead of the SDK that is bundled with it. You can do this by modifying the Project Structure | SDK's.

like image 140
Siva Velusamy Avatar answered Oct 20 '22 11:10

Siva Velusamy