将 Mono Android 应用程序部署到模拟器总是很慢吗?
我正在构建一个简单的单声道 Android 项目并部署到模拟器。每次我尝试运行程序时,在模拟器中部署和启动应用程序至少需要 30 秒到一分钟的时间。此外,诸如单步执行和检查变量之类的简单事情需要几秒钟的时间。这是正常的吗?
另外:
- 部署到实际的 Android 设备上是否更快?
- 使用java而不是c#/mono android更快吗?
- 如果不是,那么如何在迭代如此缓慢的机器人上高效地进行编程呢?
我的电脑不是很强大,但也不是垃圾:core 2 duo 2.6ghz、4gb 内存。
I am building a simple mono android project and deploying to the emulator. Every time I try to run my program it takes at least 30 seconds to a minute to deploy and start the app in the emulator. Further, simple things like single stepping and inspecting variables take several seconds. Is this normal?
Also:
- Is it much faster deploying to an actual android device?
- Is it much faster using java instead of c#/mono android?
- If no, how does one efficiently program on the droid with such slow iterations?
My computer is no powerhouse but it isn't crap either: core 2 duo 2.6ghz, 4gb ram.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我也面临同样的问题。但你可以通过两种方式解决它(至少这两种方式对我都有帮助):
我尝试了 java,是的,它部署(不起作用)更快。
I faced with same problem too. But you can solved it in two ways (at least both these ways helped me):
I tried java and yes, it deploys (not works) faster.
1)在android设备上测试你的程序更快更有效。
2)这并不重要。
我的硬件和你的一样,我用Java开发,等待时间和你的类似。
1) It is faster and more effective to test your program on an android device.
2) It isn't critical.
My hardware is like yours, I develop in Java, and have a wait time similar to yours.
我正在使用 monodroid 开发 Android 应用程序,部署大约需要 10 秒。
只需部署而无需关闭模拟器。
我每次都关闭它,部署需要 30 秒到 1 分钟。
I'm developing android applictions using monodroid and deploy takes ~10s.
Just deploy without close emulator.
I was closing it all times and it take 30sec-1min to deploy.
我接下来做了,它对速度有一点帮助:
MonoForAndroid 4.1 API level 16
模拟器开始工作得更快,虽然还不够,但总比没有好
I did next and it helps a Little in speed:
MonoForAndroid 4.1 API level 16
Emulator began work faster, not enough but it is better than nothing
没有 Mono 也有同样的问题。
您可以使用参数运行模拟器:
其中
@my_avd
-- 启动名为“my_avd”的虚拟设备@Timothy003 的完整答案在这里:为什么 Android 模拟器这么慢?我们如何才能加快 Android 模拟器的速度?
对我来说效果很好,部署速度要快得多。
The same issue is without Mono too.
You can run emulator with parameters:
where
@my_avd
-- launch a virtual device named 'my_avd'The full answer by @Timothy003 is here: Why is the Android emulator so slow? How can we speed up the Android emulator?
Works fine for me, deploying is much faster.