Unable to create AVD with android sdk on Mac OS - android

I have installed Android Studio and JDK1.8 on Mac OS. I followed the instructions and created a new application with API 15 as minimum sdk.
I tried to create an AVD from AVD manager to test my application by selecting create new virtual device->nexus 6->lollipop 22 armeabi_v7a android 5.1.1 as target. When I click finish, it takes me back to the first AVD manager screen without giving any errors and AVD is not created.
Where could be the problem?

First you need to download the SDKs you are interested in from Android Studio Tools menu -> Tools -> Android -> SDK Manager or from the menu bar.
Don't forget to install the intel x86 emulator accelerator haxm from the SDK Manager - this will speed up significantly your android virtual device.
Then proceed as you mentioned in your question.
You can find more information here.
EDIT : From the comments your OS X version is 10.7.5 and Android Studio runs on 10.8.5 so you either :
Update your OS X installation
Install Eclipse and use the ADT plugin from google on your current configuration.

Related

Unable to create an emulator using android studio

I installed android studio on MacBook Pro but when I try to create a virtual device it shows me an error saying that cpu does not support vt-x.
First you need to download the SDKs you are interested in from Android Studio Tools menu -> Tools -> Android -> SDK Manager or enter image description here from the menu bar.
Don't forget to install the intel x86 emulator accelerator haxm from the SDK Manager - this will speed up significantly your android virtual device.
Then proceed as you mentioned in your question.
You can find more information here.
EDIT : From the comments your OS X version is 10.7.5 and Android Studio runs on 10.8.5 so you either :
Update your OS X installation
Install Eclipse and use the ADT plugin from google on your current configuration.

Building app with Cordova using Visual studio

I am using visual studio to develop cordova apps, they seem to run perfectly on ripple emulator but when I select GOOGLE ANDROID EMULATOR then it gives the error as
THIS AVD's CONFIGURATION IS MISSING A KERNEL FILE
and when I use VS EMULATOR 5'' KITKAT(4.4) XXHDPI PHONE then it gives the error as YOU DO NOT HAVE PERMISSION TO MODIFY HYPER-V NETWORK ADAPTER SETTINGS
Can anyone please help?
It seems like you have an incomplete install of the Google Android Emulator and have to install one yourself.
Download Android Studio, open the SDK manager, and install the following components:
latest "Android SDK tools"
latest "Android SDK platform-tools"
latest "Android SDK build-tools"
Android 6.0 API 23 - SDK platform -- to build the latest kind of Android app
Android 5.0.1 API 21 - SDK platform -- to use the emulator successfully
Android 5.0.1 API 21 - ARM EaBI v7a System Image -- the emulator image which you can use on a machine with Hyper V activated
Then, open the AVD manager and create an emulator with the ARM system image.
Finally, go to tools->options->"Tools for Apache Cordova" -> Environmental variable overrides, and link to where your customized Android Studio is installed.

Specify location for android api for AVD Manager

Today, I decided to try Android Studio. When opening AVD Manager from the Tools > Android > AVD Manager menu on Android Studio, the list shows that the AVD named DroidBox fails because of "Unknown target android-16". I created that Virtual Device back when I used Eclipse for Android programming.
I have android-16 downloaded on my system (I know the path to the dir, and it has worked before), but apparently the location isn't being seen.
How can I tell AVD Manager where to find the directory?
you can set the path for same sdk that you were using with Eclipse. Just follow these steps:
File-> Project Structure->Android SDK location.
Under Android SDK location, browse for you sdk that you are using with eclipse. Yoy may need to re-start Android Studio to take effect! i m using A.S 0.8.6!
Even I had faced the same problem. Tools -> AVD Manager -> Create Virtual Device just adds the Virtual device. Underlying SDK (=~ Android OS selected while creating the Virtual device) should be separately installed.SDK can be installed from Tools -> SDK Manager.
Android Studio looks for different directories than Eclipse. From Android Studio, run the SDK Manager and verify that marks API 16 as installed. If not just install it and that should work

Android SDK r21 - AVD Manager on Ubuntu 12.10 LTS

I have just installed Android SDK on my Ubuntu Device following this example:
http://www.liberiangeek.net/2012/07/download-and-install-androidsdk-in-ubuntu-12-04-precise-pangolin/
The example is for Android SDK version r20, but I set the version to r21 because that is the newest version. I had no problems there.
I updated the SDK and downloaded all the platforms I need to develop my apps.
But at the end of the example, it says to enter android in the terminal, and that command should open both the SDK manager and the AVD manager.
However, it only opens the SDK manager, and I can't seem to find out how to open the AVD manager using that command.
Is there a way to set the PATH variable so that it opens both the SDK manager AND the AVD manager?
Use android avd to open the AVD Manager.

No Default API Levels in AVD Manager

I installed the Android SDK and also installed the ADT Plugin for Eclipse.
When I launched the AVD manager, I don't see a default API Level in it. I clicked on New and in the Create New AVD Window the Target is always Disabled. I am not able to start over because of this.
System Specifications:
Eclipse : 3.7
Android SDK is 20.1 or something i am not sure.
You have to open SDK Manager and install the android version apis.
See the screenshot.

Categories

Resources