如何在ubuntu 16.04中启动android模拟器?

时间:2022-07-03 23:44:02

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.

我安装了android sdk,我已经查找了说运行〜/ android-sdk-linux / tools / android然后单击工具菜单的方向,但是没有工具菜单。

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

我也尝试过下载虚拟机​​管理器,但是当我启动该模拟器时它说我需要插入一张SD卡。

How do I start an android emulator on ubuntu 16.04?

如何在ubuntu 16.04上启动Android模拟器?

4 个解决方案

#1


18  

For Ubuntu 16.04 you need to download few things first.

对于Ubuntu 16.04,您需要先下载一些东西。

After installing Android Studio.

安装Android Studio后。

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

转到工具> Android> AVD管理器>创建新的虚拟设备

follow standard installation for new virtual device.

遵循新虚拟设备的标准安装。

After Creating virtual device

创建虚拟设备后

Goto Tools > Android > SDK Manager > SDK Tools and check Android emulator 如何在ubuntu 16.04中启动android模拟器?

转到工具> Android> SDK管理器> SDK工具并检查Android模拟器

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 lib64stdc ++ 6:i386

sudo apt-get install mesa-utils

sudo apt-get install mesa-utils

cd YOURPATH/Android/Sdk/emulator/lib64

mv libstdc++/ libstdc++.bak

mv libstdc ++ / libstdc ++。bak

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

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

This should start your emulator.

这应该启动你的模拟器。

#2


3  

Run

~/android-sdk-linux/tools/android avd

to start in AVD manager mode.

从AVD经理模式开始。

#3


2  

Copy the name of the device that you want to run and then:

复制要运行的设备的名称,然后:

cd ~/Android/Sdk/tools && ./emulator -avd NAME_OF_YOUR_DEVICE

In my case:

就我而言:

cd ~/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_23

#4


0  

  1. cd /Path/to/Sdk/tools

  2. sudo ./emulator -avd NAME_OF_YOUR_DEVICE

    sudo ./emulator -avd NAME_OF_YOUR_DEVICE

#1


18  

For Ubuntu 16.04 you need to download few things first.

对于Ubuntu 16.04,您需要先下载一些东西。

After installing Android Studio.

安装Android Studio后。

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

转到工具> Android> AVD管理器>创建新的虚拟设备

follow standard installation for new virtual device.

遵循新虚拟设备的标准安装。

After Creating virtual device

创建虚拟设备后

Goto Tools > Android > SDK Manager > SDK Tools and check Android emulator 如何在ubuntu 16.04中启动android模拟器?

转到工具> Android> SDK管理器> SDK工具并检查Android模拟器

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 lib64stdc ++ 6:i386

sudo apt-get install mesa-utils

sudo apt-get install mesa-utils

cd YOURPATH/Android/Sdk/emulator/lib64

mv libstdc++/ libstdc++.bak

mv libstdc ++ / libstdc ++。bak

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

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

This should start your emulator.

这应该启动你的模拟器。

#2


3  

Run

~/android-sdk-linux/tools/android avd

to start in AVD manager mode.

从AVD经理模式开始。

#3


2  

Copy the name of the device that you want to run and then:

复制要运行的设备的名称,然后:

cd ~/Android/Sdk/tools && ./emulator -avd NAME_OF_YOUR_DEVICE

In my case:

就我而言:

cd ~/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_23

#4


0  

  1. cd /Path/to/Sdk/tools

  2. sudo ./emulator -avd NAME_OF_YOUR_DEVICE

    sudo ./emulator -avd NAME_OF_YOUR_DEVICE