无法连接到虚拟机 [英] cannot connect to VM

查看:139
本文介绍了无法连接到虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在android项目中做了一个测试类,以检查我的数据库是否正常工作。但是,当我想调试此类时,它给了我一个错误:无法连接到VM,详细地,它还显示了 nonsocket上的套接字操作:configureBlocking。当我尝试在另一个项目中调试测试类时,它可以工作,而在android项目中调试我的其他类也可以。问题可能是我尝试在android项目上运行普通测试吗?

I made a test class in my android project to check if my database works. But when I want to debug this class it gives me an error: "Cannot connect to VM", in details it says also "Socket operation on nonsocket: configureBlocking". When I try debugging a test class in another project it works and debugging my other classes in the android project also works. Can the problem be that I try to run a normal test on an android project?

有人可以帮我吗?
谢谢!

Can someone help me? Thanks!

推荐答案

您可能已经知道了,但是对于其他陷入这种情况的人,这里是我的答案。
我现在几次遇到这个问题,最后我发现它与

You probably figured this out already, but for others who get stuck in this situation, here is my answer. I've had this problem a couple of times myself now, and I finally found out that it's related to


有关,包括android类文件中的主要方法:
不要这样做!

在Eclipse中运行配置:
删除自动创建的应用程序配置

Run Configuration in Eclipse: Delete the automatically created application configurations

以下链接提供了有关该问题的很好的解释,解决方案及其原因:
http://independentlyemployed.co .uk / 2010/11/16 / solved-internal-error-classfileparser-cpp3161 /

The following link provides a very good explanation about the problem, the solution, and the reasons: http://independentlyemployed.co.uk/2010/11/16/solved-internal-error-classfileparser-cpp3161/

这篇关于无法连接到虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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