Android SDK Error Upon Creating Emulator

I am running into a problem creating an android emulator from the command line. When I run the android command the messages below output.

Starting Android SDK and AVD Manager

SWT folder 'lib\x86_64' does not exist

Please set ANDROID_SWT to point to the folder containing swt.jar for platform

I've already:

  1. Execute SDK Setup.exe and brought down the android packages
  2. Modified my environment variables to point to the tools folder
  3. Verified that the SWT.jar was in fact located in lib\x86_64

I've already successfully set this up on my primary development unit. The system I am installing on now runs 64-bit Windows 7 (same as my other development unit).

Asked by: David452 | Posted: 24-01-2022

Answer 1

I had the exact same error message show up when I was trying to get Android up and running. However after looking around online I found a command which fixed my problem.

Try running this from the command line:

android create avd --target 2 --name my_avd

Answered by: Joyce875 | Posted: 25-02-2022

Similar questions

Does anybody know what keeps Google from creating an Android native x86 emulator?

Creating Text file using android emulator

I am making a handwriting recognizer using android emulator , I have coordinates stored in an arraylist , What i want is that i need to store the coordinates on a text file in my computer's harddisk so that the text file can be later read by an external tool kit like hidden markov model ( that text file will be my training data ) . How can i create a TEXT FILE on my HARD DISK and make it editable and readable to users and ...

android - Issue with eclipse DDMS while creating emulator of 4.0

Recently i added android 4.0 into the SDK Manager and installed it.But after this while i am creating a emulator of 4.0,in DDMS after sometime the emulator is getting disappear.Anyone any idea plz help. :)

android - How to creating a db in emulator directly

How to create a db in emulator directly using the adb command? I don't have any database folder under the data/data section of my application package, hence i won't be able to enter into the database folder and create the db using: SQLite3 myDatabase.db Then how to do it? Please help Thanks, Bunta

Creating a socket to a remote HTTP Server using android emulator

I'm very new to android programming. I have a program that uses sockets to connect to a remote host, spoof an http request, and parse the results. For some reason, my socket cannot connect to the host. I have tested the program in a standalone environment and it connects and works fine. I went ahead and isolated the function I needed and included it in my activity class to call it that way. Ive also tried calling it st...

java - Creating a new Android emulator in eclipse?

I'm trying to create a new emulator through eclipse, but for some reason I can't choose a Target (ie, API 10) I kinda messed up when installing my Android SDK and had to do it manually. Not sure if I'm supposed to place the SDK in a special location or not.

android - Creating Galaxy S4 emulator

I am trying to run my app specifically on Galaxy S4. But I do not have the real time device. So, I'm trying to create the emulator for Galaxy S4. I have a normal Core I3 system with 4GB RAM. It doesn't have any graphics card and all. I am finding the ways for installing the Samsung Galaxy S4 add-ons to my sdk. But I am not getting it. I referred these links,

creating folder in android emulator

I am developing an android application. I need to create a folder in the internal memory, but when I try to create the folder I get the error below. I am running in an emulator. mkdir failed for /mnt/New Folder , read only file system I have tried many paths, but still the error persists. The only folder that I am able to create is called "cache", but I cannot browse it by my file chooser...

Error while creating Android Emulator in eclipse

I tried to create an emulator for Samsung Galaxy S4,but I am getting the following error. I searched in SO but didnt find any solution. Starting emulator for AVD 'AVD_for_Galaxys4' Failed to create Context 0x3005 could not get wglGetExtensionsStringARB emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. could not get wglGetExtensionsStringARB could not get wglGetExtensionsS...

android - Creating Emulator Profile for Galaxy mini s4 in AVD

Can Anyone explain how can i create Galaxy S4 mini profile in AVD New Defintion ? Device Spec in this site : are like this : 540 x 960 pixels, 4.3 inches (~256 ppi pixel density) 1.5 GB RAM Internal Memory now how c...

android - Creating dynamic controls

I am trying to create a screen with some dynamic controls, well radio buttons to be precise purely for learning purposes. I have managed to add the radio button by referencing the radio group in the main.xml file. RadioGroup rg = (RadioGroup)findViewById(R.Id.types); RadioButton rb = new RadioButton(this); rb.setText("some text!"); rg.addView(rb); What I cannot figure out is how do...

android - Problem creating AVD

I have installed Android SDK on my MAC OS X 10.6 and facing lots of problem while creating AVD. When I tried to create it for ECLIPSE (3.5 Gallelio) then after clicking the 'new' button, when I try to type a name there comes a message bellow saying 'a target must be selected in order to create an AVD'. But the problem is, the Target field is deactivated. If I'm trying to create AVD from terminal wit...

java - Creating database in android

i was creating a database and deleting it, adding registries on my android htc mobile sqlite database without any problem. But now, after last deleting of the database everytime i want to create a new one i get a sqlite exception that says me "unable to open database file" with the following data: serialVersionUID (RuntimeException)= -7034897190745766939 cause= SQLiteException (id=830...

Creating an empty Drawable in Android

Creating a Drawable that is completely empty seems like a common need, as a place holder, initial state, etc., but there doesn't seem to be a good way to do this... at least in XML. Several places refer to the system resource @android:drawable/empty but as far as I can tell (i.e., it's not in the reference docs, and aapt chokes saying that it can't find the resource) this doesn't exist. Is there a gene...

android - Issue creating AVD on command prompt in windows XP

I am the beginner for android development. I followed the procedure as specified in . for installing I Tried to create AVD(Android virtual device) through command path. I executed at command prompt. android create avd --target 2 --name my_avd But the Error is coming "Error: Target id is not valid. Use 'android.bat list targets' to get the target ids."...

Creating an image of an Android phone

Does anyone know how to create a 1:1 disk image of an Android phone? I am taking a forensics course and our final project involves creating tools to recover information from a suspect's Android based phone, however to do this we need to be able to create a 1:1 image of the phone's disk for baseline comparisons. Also would the image be loadable into AVD?

android - Creating a Custom Compound Button Bar

I have to create a custom compound button bar control in Android like the one here. To create a button bar like this, I am thinking of extending a LinearLayout and add my buttons to it. The buttons have a black background but with a gradient fill; I am not keen on using PNGs since the color of the ...

java - Creating a list of integers in XML for android

I would like to create a list of Integers in the /res folder of an android project. However, I want those integers to point resources in /res/raw. So for example, I would like something like this: <?xml version="1.0" encoding="utf-8"?> <resources> <integer-array name="built_in_sounds"> <item>@raw/sound</item> </integer-array> </resources&g...

shell - Creating folders using Android SDK

Is it possible to be able to create a folder on the sd card of the phone via using Android SDK or the Shell?

Creating a dynamic (video) Overlay on Google Maps on Android 2.1

I'm trying to create a map overlay for displaying a video stream (MJPEG) on top of a Mapview. Currently I've a standalone activity that creates a data thread for fetching MJPEG video frames. I'm using a handler to send a frame (as a Bitmap) from the data thread to the main activity which then updates the UI. I'm not sure how to implement "refresh" for updating my "overlayed" video stream. EDIT: ...

Still can't find your answer? Check out these communities...

Android Google Support | Android Community | Android Community (Facebook) | Android