Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am totally new to ubuntu. I installed adt(eclipse) from developer.android.com .. It is working fine. But when I try to start an AVD it says : Error:13 - Permission Denied.

I tried to start eclipse with sudo ./eclipse but I am still getting the same error .

share|improve this question
    
You might want to consider using Android Studio instead of the older Eclipse Android IDE. I've had a much easier time getting things like AVDs and the SDK manager working with Android Studio. Just a thought. –  Ian Lantzy Jul 25 at 16:33

4 Answers 4

up vote 1 down vote accepted

There are several solutions corresponding to your problems.

  1. The correct SDK and tools are not installed. For this you need to go to the location where you have downloaded Android-SDK and start the android.sh. Then download required platform/build tools along with required files for any API.
  2. SDK tool is not getting execution rights. To solve this problem, navigate to the SDK location directory and type the following in your terminal.(as root if necessary).
    chmod -R +x Android-SDK
    Replacing Android-SDK with the name of your SDK directory.

Note : Android is shutting down its project for eclipse support, so I suggest migrating to Android Studio as soon as possible. Check here for details.

share|improve this answer
sudo chown -R username:username Directory(whatever)
sudo chmod +x directory (whatever)
share|improve this answer

You should not start eclipse with sudo. Make sure that you follow instruction on Android Developer Tools.

Also, make notice:

Important: Support for the Android Developer Tools (ADT) in Eclipse is ending, per our announcement. You should migrate your app development projects to Android Studio as soon as possible. For more information on transitioning to Android Studio, see Migrating to Android Studio.

share|improve this answer

As part of solution:

1) Check that you can get adb version by typing adb version in console.

1.1) Check that you are using same adb in eclipse and in console if #1 is working. Type which adb in console and compare path to adb with path to adb in Eclipse.

2) Open AVD manager and check that android tools are installed.

3) Check path

4) Check that adb wasn't installed by other user, or check execution rights.

Solution that helped: install IA32 if you are using 64 bit architecture.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.