启动AVD是否出错? Android Studio模拟器:警告:VM堆大小设置为低于硬件指定的最小值128MB [英] Is this an error in launching the AVD? Android Studio emulator: WARNING: VM heap size set below hardware specified minimum of 128MB

查看:363
本文介绍了启动AVD是否出错? Android Studio模拟器:警告:VM堆大小设置为低于硬件指定的最小值128MB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次(n年后)回到Android开发中.这是我第一次使用Android Studio并试用了Android虚拟设备.我对此一无所知,所以为什么不问一个有帮助的Stack Overflow社区呢!

This is my first time (after n amount of years) to go back in Android development. It's my first time to use Android Studio and tried out the Android Virtual Device. I'm a total noob at this, so why not ask the ever helpful Stack Overflow community!

在我第一次尝试启动虚拟设备时,就出现了一个带有"Android"的黑屏,然后单击虚拟设备侧面的按钮,如Power(电源),Volume Up(音量调高),什么也没发生.我在Android Studio中检查了错误:

In my first try in launching the virtual device, a black screen with "Android" is just there and I'd click the buttons found at the side of the virtual device like Power, Volume Up, nothing happens. I checked the error in Android Studio:

emulator: WARNING: VM heap size set below hardware specified minimum of 96MB
emulator: WARNING: Setting VM heap size to 256MB

我检查了Intel HAXM设置,并将其设置为1024 MB的默认大小,该大小大于96MB.我删除了虚拟设备并创建了一个新设备,它运行顺利(有通常的主屏幕).我检查了Android Studio中的控制台,然后将其恢复了

I checked the Intel HAXM Setting and it was set to the Default Size of 1024 MB which is bigger than 96MB. I deleted the Virtual Device and created a new one and it ran smoothly (there was the usual home screen). I checked the console in Android Studio and got this back

emulator: WARNING: VM heap size set below hardware specified minimum of 128MB
ERROR: resizing partition failed with exit code 1
emulator: WARNING: Setting VM heap size to 384MB
Creating filesystem with parameters:
Warning: requested ram_size 1536M too big, reduced to 1024M
    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 0x40000000
HAX is working and emulator runs in fast virt mode.
console on port 5554, ADB on port 5555

任何人都可以解释该错误吗?以及为什么仿真器会发出相同的警告,指出如果设置超过128MB,则将其设置为低于128MB.很高兴知道HAX is working and emulator runs in fast virt mode很好,但我也想知道设置是否足够有效,以至于不会降低计算机的性能,速度和内存?谢谢!

Can anyone explain the Error? And why is there the same warning from the emulator saying that it's set below 128MB when the setting is more than that. It's good to know that "HAX is working and emulator runs in fast virt mode" that's good and all but I also want to know if the setting is efficient enough that it won't slow my computer's performance, speed and memory? Thank you!

推荐答案

我遇到了同样的问题,但是通过更改build.gradle来解决了

Hi i faced the same problem but resolved by changing in build.gradle

 buildToolsVersion "24.0.0"

 buildToolsVersion "23.0.3"

这篇关于启动AVD是否出错? Android Studio模拟器:警告:VM堆大小设置为低于硬件指定的最小值128MB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆