Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android Failed to start emulator:Cannot run program

Tags:

I have installed android SDK and android eclipse plugin successfully on Ubuntu.

Every thing was working fine until I removed Ubuntu and installed Linux Mint. I installed the SDK again and used the same eclipse copy I was using on Ubuntu but now all the android applications contain errors and I can not start the emulator.

When starting the emulator this message appears

Starting emulator for AVD 'test' Failed to start emulator: Cannot run program "/home/anas/android//tools/emulator": error=2, No such file or directory

While the android SDK is installed in the specified path and the file (emulator) is exists in the same path.

Also all my applications contains the same error R can not be resolved to a variable

What is the problem here?

like image 432
Anas Rabei Avatar asked Jan 29 '13 08:01

Anas Rabei


People also ask

Why is my Android Emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

How do I turn off Android Emulator?

Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data.


1 Answers

  1. Installed on Ubuntu successfully. but not running avd

    If you're running a 64-bit system, you need to install ia32-libs

  sudo apt-get install ia32-libs
  1. R can not be resolved to a variable

This can be due to following Reason

  • class is not the part of that package add proper package

  • not properly defined in manifest file class path define it properly

clear and run the avd it will work

like image 196
Usman Kurd Avatar answered Sep 29 '22 23:09

Usman Kurd