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 with the command './android avd --target 2 --name my_avd' it shows an error saying 'Error: Expected verb after global parameters but found 'avd' instead.'
I don't understand what to do right now. Can anybody help me in this regard please??
Thanks
Asked by: Carlos381 | Posted: 24-01-2022
Answer 1
First you have to specify the Android SDK installation folder to the Eclipse Android plugin. Go to Preferences -> Android and set it. After that you have to install the target versions you want to develop against.
Go to AVD Manager -> Available Packages and download the targets that you need. After that you should be able to create your AVD. If you still have problems, try restarting Eclipse because that solved some issues for me a number of times.
If you still have problems try reading the Troubleshooting Tips.
Answered by: Caroline751 | Posted: 25-02-2022Answer 2
You have the command line wrong. You need to add create
to it. Try the following:
android create avd --target 2 --name my_avd
Answered by: Chelsea923 | Posted: 25-02-2022
Similar questions
android - Issue creating AVD on command prompt in windows XP
I am the beginner for android development. I followed the procedure as specified in developer.google.com . 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 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 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:
Execute SDK Setup.exe and brought ...
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 developer.google.com . 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) | Dev.io Android