gpt4 book ai didi

android - 无法启动 AVD 模拟器

转载 作者:太空宇宙 更新时间:2023-11-03 11:24:24 25 4
gpt4 key购买 nike

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

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

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.

最佳答案

我使用的是 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 - 无法启动 AVD 模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39782745/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com