【问题标题】:Cannot launch AVD emulator无法启动 AVD 模拟器
【发布时间】:2017-02-08 12:20:07
【问题描述】:

所以我打算在休息一段时间后重新开始编码。我在我的新笔记本电脑上下载了 Android Studio 并创建了一个谷歌地图活动。

我对代码所做的唯一更改是为谷歌地图插入我的 api 密钥。当我尝试在模拟器中启动我的应用程序时,我收到了这个:

Cannot launch AVD in emulator.
Output:
Creating filesystem with parameters:
ERROR: resizing partition e2fsck failed with exit code 1
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
[3900]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file C:\Users\Mike Jones\.android\emu-update-last-check.ini for reading.
[17164]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file C:\Users\Mike Jones\.android\emu-update-last-check.ini for reading.

【问题讨论】:

    标签: android android-studio android-emulator


    【解决方案1】:

    您喜欢 android sdk 中的 Intel x86 Emulator Accelerator(HAXM 安装程序) 如果没有完成,请通过管理员权限播放 {ANDROID_SDK_HOME}\extras\intel\Hardware_Accelerated_Excecution_Manager\intelhaxm-android.exe

    【讨论】:

      【解决方案2】:

      我使用的是 ubuntu 16 64 位版本。在 android-studio 2.2 中,我设置了我的 ANDROID_HOME 路径,没有更多错误。设置路径如下:

      打开 .bashrc 文件

      `sudo gedit ~/.bashrc`
      

      然后做:

      `export ANDROID_HOME=$HOME/Android/Sdk`
      `export PATH=$PATH:$ANDROID_HOME/tools`
      

      【讨论】:

      • 这并不能解决问题中提出的问题。如果未设置 ANDROID_HOME,您将无法编译
      猜你喜欢
      • 2018-09-09
      • 1970-01-01
      • 2019-04-17
      • 1970-01-01
      • 2021-12-28
      • 2013-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多