java - android 模拟器未启动

标签 java android android-studio haxm

无法在模拟器中启动 AVD。

输出:

emulator: WARNING: VM heap size set below hardware specified minimum of 128MB emulator: WARNING: Setting VM heap size to 128MB qemu-system-i386.exe: -drive if=none,index=1,id=cache,file=C:\Users\haris.android\avd\Nexus_5_API_19.avd/cache.img: could not open disk image C:\Users\haris.android\avd\Nexus_5_API_19.avd/cache.img: Could not open 'C:\Users\haris.android\avd\Nexus_5_API_19.avd/cache.img': Invalid argument Hax is enabled Hax ram_size 0x20000000 HAX is working and emulator runs in fast virt mode.

enter image description here

最佳答案

在 Android Studio 中打开 Windows->选择 Android Virtual Device Manager->选择您的设备->单击“编辑”按钮->在内存选项中将 RAM 参数更改为 172 MB->保存并运行它将运行的模拟器

关于java - android 模拟器未启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38166922/

相关文章:

Java:交错两个基于整数的数组列表 ->好方法?

java - 在具有 hyperledger 结构的路径 DexPathList 上找不到 Android Studio 类

android - 添加谷歌地图功能后无法实例化 Activity ComponentInfo

来自 React Native 的 Android App Bundle : You uploaded an APK or Android App Bundle with invalid or missing signing information for some of its files

java - Findbugs错误 "Load of known null value"SQL连接

java - 函数 ref 作为 arg 的行为不明确

java - boolean 值不会从 true 返回 false

android - 使 recyclerView 项目适合屏幕

android-ndk - 如何使用 Android Gradle 插件 0.7 配置 NDK

java - 无法打开调试端口 : java.net.socketexception "Connection refused"- Android Studio