Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start an android emulator in ubuntu 16.04?

I have android sdk installed, I've looked up directions which say to run ~/android-sdk-linux/tools/android and then click on a tools menu, but there is no tools menu.

I've also tried downloading virtual machine manager, but when I started that emulator it said I needed to insert an sd card.

How do I start an android emulator on ubuntu 16.04?

like image 480
Matt Avatar asked Oct 08 '16 03:10

Matt


People also ask

How do I start an emulator in Ubuntu?

Installing an app Build and package your app into an APK as described in Build and Run Your App. Start the emulator from the command line as described in the previous section, using any startup options necessary. Install your app using adb. Run and test your app on the emulator.


1 Answers

For Ubuntu 16.04 you need to download few things first.

After installing Android Studio.

Goto Tools > Android > AVD Manager > Create new virtual device

follow standard installation for new virtual device.

After Creating virtual device

Goto Tools > Android > SDK Manager > SDK Tools and check Android emulator enter image description here

Give it a try,if it still doesn't work you need add few libraries.

Goto terminal and execute below commands

sudo apt-get install lib64stdc++6:i386

sudo apt-get install mesa-utils

cd YOURPATH/Android/Sdk/emulator/lib64

mv libstdc++/ libstdc++.bak

ln -s /usr/lib64/libstdc++.so.6 libstdc++

This should start your emulator.

like image 119
Prashant Abdare Avatar answered Oct 10 '22 14:10

Prashant Abdare