android create avd

I got this error when i ran the following command

android creat avd -t 2 -n my_avd

And this was the error

Exception in thread “main” java.lang.AssertionError

Solution : Run the following command

sudo update-alternatives –config java

What it does is you will be given the choices between the existing Java Versions already installed in your system. And by choosing the right version (by typing a number from the list) solves this error. This becomes the default option of the system and so the whole thing gets right.

Thanks to :

4 responses to “android create avd

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s