Android Studio模拟器显示;不工作

时间:2022-09-12 18:55:39

Following online instructions, I created an app that converts kilometers to miles, and miles to kilometers. I tried to run the app, and I turned on the emulator. It showed up, but it didn't run the program. That's all I know about the problem. Any suggestions? (I really wish I had more info)

按照在线说明,我创建了一个应用程序,将公里转换为英里,英里转换为公里。我试着运行应用程序,然后打开了模拟器。它出现了,但它没有运行程序。这就是我对这个问题的全部了解。有什么建议? (我真的希望我有更多的信息)

EDIT:

It says:

emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
Warning: requested ram_size 1536M too big, reduced to 1024M
emulator: WARNING: Setting VM heap size to 384MB
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

1 个解决方案

#1


0  

I believe your emulator is complaining because you don't have enough ram to give to the emulator.

我相信你的模拟器正在抱怨,因为你没有足够的ram给模拟器。

I think you go to tools > Android > AVD manager and then select the emulator you want to use. Once selected you should be able to reduce the amount of ram to 1024m like it's asking you to do. I'm not on my pc at the moment so I hope my memory serves me well!

我想你去工具> Android> AVD管理器,然后选择你想要使用的模拟器。一旦被选中,你应该能够将ram的数量减少到1024m,就像它要求你做的那样。我现在不在我的电脑上,所以我希望我的记忆能很好地为我服务!

If that doesn't work hopefully this android document can help: https://developer.android.com/studio/run/managing-avds.html

如果这不起作用希望这个Android文档可以帮助:https://developer.android.com/studio/run/managing-avds.html

#1


0  

I believe your emulator is complaining because you don't have enough ram to give to the emulator.

我相信你的模拟器正在抱怨,因为你没有足够的ram给模拟器。

I think you go to tools > Android > AVD manager and then select the emulator you want to use. Once selected you should be able to reduce the amount of ram to 1024m like it's asking you to do. I'm not on my pc at the moment so I hope my memory serves me well!

我想你去工具> Android> AVD管理器,然后选择你想要使用的模拟器。一旦被选中,你应该能够将ram的数量减少到1024m,就像它要求你做的那样。我现在不在我的电脑上,所以我希望我的记忆能很好地为我服务!

If that doesn't work hopefully this android document can help: https://developer.android.com/studio/run/managing-avds.html

如果这不起作用希望这个Android文档可以帮助:https://developer.android.com/studio/run/managing-avds.html