Could not start emulator on Linux

The problem is that I switched the form windows to linux [ubuntu 12.04] and I use the android emulator to program Android using eclipse. and when I tried to run my adv emulator, it will exit with this message:

Failed to start emulator: Cannot run program "/home/lenovo/Desktop/adt-bundle-linux/sdk//tools/emulator": error=13, Permission denied. 

the same problem was found here for iOS, but in this case it was a mistake: 1. I read the solution, but could not implement it, because I could not understand it, and I am also new to Linux. I am using Ubuntu 12.04 as my os. It would be great if some friend could help me ...

+6
source share
4 answers

Open a command prompt and enter the commands below.

First #

su root it will ask for a password, if you specified, enter your password,

Secondly #

chmod -R 777 '/home/android-sdk-linux/' (your sdk path)

hit enter and try to run your emulator again.

hope this works for you.

+11
source

Try setting permissions:

 sudo chown -R lenovo:lenovo /home/lenovo/Desktop/adt-bundle-linux sudo chmod +x /home/lenovo/Desktop/adt-bundle-linux/sdk/tools/emulator 

and try again.

0
source
Question

fixed. The solution I tried is a very similar answer. In addition to adding platform tools, I had to add a tool folder to bashrc.

This is how I added the android paths in the bashrc file.

 # Android tools export PATH=${PATH}:~/android-sdk-linux_x86/tools export PATH=${PATH}:~/android-sdk-linux_x86/platform-tools export ANDROID_SDK_HOME=~/android-sdk-linux_x86/tools export PATH=$PATH:$ANDROID_SDK_HOME For those who have this problem after adding this, if you still have this issue then please make sure that the java path is added. It may be like export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26 export PATH=$PATH:$JAVA_HOME The java version name may varry depending on the version installed on your machine. To find the version name type java -version from terminal. 

If there is still a problem, please check the permissions of the avd folder, its contents and the .android folder.

same problem. But my jdk version is 7. I solved this by following these steps:

 ctrl+alt+t>>vi ~/.bashrc>>Add the path "android-sdk/platform-tools" to export Path= ....:Path set chmod -R 777 android-sdk` 
0
source

Thanks guys, the problem is resolved. This happened due to an incomplete OS update. I solved this by simply updating the OS. The main problem was that the adt package for linux was for a 32-bit architecture and ran it in a 64-bit architecture. need to update ubuntu libraries.

0
source

All Articles