相关疑难解决方法(0)

从源代码构建Android后运行模拟器

我能够将最新的android源代码下载到32位的Ubuntu虚拟机中(主机:Windows 7 64位).构建完成没有任何错误.

然后我尝试按照这些说明进行操作,其中提到我应该在源代码的根目录上运行模拟器.但是,当我尝试这个时,我收到一条错误,指出找不到此命令.

所以我去了文件夹out/host/linux-x86/bin,我发现有几个文件emulator*:

  • emulator
  • emulator-arm
  • emulator_renderer
  • emulator-ui
  • emulator-x86

当我键入emulatoremulator-x86在这里时,它也不起作用.这是我得到的错误:

xxxx/out/host/linux-x86/bin$ ./emulator-x86
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.

If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).

Otherwise, follow the instructions in -help-disk-images to start the emulator
Run Code Online (Sandbox Code Playgroud)

所以当我跑步时./emulator-x86 -help-disk-images,我看到以下内容:

If you …
Run Code Online (Sandbox Code Playgroud)

android linux-kernel android-emulator

25
推荐指数
3
解决办法
4万
查看次数

标签 统计

android ×1

android-emulator ×1

linux-kernel ×1