2

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?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

0

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 :

  1. Update your OS X installation
  2. Install Eclipse and use the ADT plugin from google on your current configuration.
StefanS
  • 1,089
  • 1
  • 11
  • 38
  • 1
    I have installed intel x86 emulator… http://postimg.org/image/uga9eudmh/... along with sdks. I also restarted my system after all installations but unable to create AVD. – Parul Vipparthi Sheth Jul 31 '15 at 14:36
  • try to delete your already created virtual devices and then recreate one and test, don't forget to set the correct SDK. – StefanS Jul 31 '15 at 14:39
  • 1
    AVD manager is not showing any AVDs to delete. It shows the "create a virtual device screen" whenever i click and comes back to the same screen after creating AVD. – Parul Vipparthi Sheth Jul 31 '15 at 14:41
  • you could try downloading the latest sdk version then trying to create a new AVD with nexus for instance. this should eliminate the possibility that the device + configuration you want to use are incompatible. – StefanS Jul 31 '15 at 14:45
  • if this doesn't work, there might be some problems with your installation, and instead of debugging and spending time on this, you should just delete it, and install again, fresh. let me know how this works for you. – StefanS Jul 31 '15 at 14:46
  • I have uninstalled android studio and installed a fresh copy from http://developer.android.com/intl/zh-TW/sdk/index.html?utm_campaign=android-studio-1-3&utm_source=dac&utm_medium=blog. It is the latest version. I got this error after installing: – Parul Vipparthi Sheth Aug 01 '15 at 05:44
  • I have uninstalled android studio and downloaded and installed a fresh. It is the latest version. I got this error after installing: Downloading android-sdk_r22.6.2-macosx.zip from https://dl.google.com/android/android-sdk_r22.6.2-macosx.zip Unpacking android-sdk_r22.6.2-macosx.zip …. Done. 10 packages installed. Android SDK is up to date. Running Intel® HAXM installer Silent installation Pass! Creating Android virtual device Unable to create a virtual device: Unable to create Android virtual device – Parul Vipparthi Sheth Aug 01 '15 at 05:53
  • Now when I create a new project and try to run by creating AVD from manager, it shows this screen http://postimg.org/image/e4kze26lf/ and then this one http://postimg.org/image/703650zc3/. What do I do? – Parul Vipparthi Sheth Aug 01 '15 at 06:25
  • These are the snapshots of installed tools from sdk manager: http://postimg.org/image/vgrdyixft/ , http://postimg.org/image/banvzn1s9/ – Parul Vipparthi Sheth Aug 01 '15 at 06:41
  • What version of OS X are you using ? There might be some inconsistencies if it's not the latest. Also check your java version. – StefanS Aug 01 '15 at 10:10
  • Mac OS x 10.7.5, java 1.8.0_51 – Parul Vipparthi Sheth Aug 01 '15 at 10:36
  • Delete all your AVDs if any, open SDK Manager and use the "Tools" in the menu to manually enter the data to create an AVD. Seems like there are problems with the Android Studio, your OS is too old. – StefanS Aug 01 '15 at 10:56
  • If you can't update your OS, you might consider installing [Eclipse](https://eclipse.org/) and the [plugin from google](http://developer.android.com/sdk/installing/installing-adt.html) to develop Android apps. Let me know if you encounter any problems. – StefanS Aug 01 '15 at 11:01
  • https://developer.android.com/sdk/index.html#Requirements Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks), hence you need either to update your Mac OS or to use the previously mentioned method. – StefanS Aug 01 '15 at 11:07
  • OK… it needs 10.8 or 10.9! – Parul Vipparthi Sheth Aug 01 '15 at 11:07
  • 1
    Thank you so much, I will try to run on a real device instead for emulator and if that too doesn't woek, will try to update my OS X. Have a great weekend! – Parul Vipparthi Sheth Aug 01 '15 at 11:09
  • Consider selecting this answer to your question, updated the answer above. A great weekend to you too ! – StefanS Aug 01 '15 at 11:11
  • http://stackoverflow.com/questions/31800711/version-or-android-studio-for-mac-osx-10-7-5 … Please answer. – Parul Vipparthi Sheth Aug 04 '15 at 04:31