无法启动AVD仿真器

问题描述 投票:4回答:2

所以我计划在休息一段时间后重新编码。我在新笔记本电脑上下载了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
2个回答
0
投票

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

open .bashrc file

`sudo gedit ~/.bashrc`

then do:

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

-1
投票

如果没有完成,你可以在android sdk中使用英特尔x86仿真器加速器(HAXM安装程序),通过管理员的权限播放{ANDROID_SDK_HOME} \ extras \ intel \ Hardware_Accelerated_Excecution_Manager \ intelhaxm-android.exe

© www.soinside.com 2019 - 2024. All rights reserved.