日食卡在运行程序 [英] eclipse stuck at running program
问题描述
这是我结束任务之后的图片。
This is the picture after I end task the eclipse.
我的Android程序没有错误,在这个问题之前,这是很好的。
当我将一些代码添加到我的程序中时发生。点击运行按钮后卡住。
当我运行我的手机调试程序时也会发生这种情况。
其他程序都工作正常,只有一个被卡住。
My Android Program has no errors, and before this problem it was all fine. It happened when I added some code into my program. It gets stuck after I click the run button. This also happens when I run my handphone for debugging the program. Other programs are all working fine, only one is stuck.
我的卡住的意思是eclipse的进度条保持显示启动myprogram(100%)
但是没有没有运行模拟器。
the meaning of my stuck is the progress bar of eclipse keep show launching myprogram (100%)
but it didn't running out the emulator.
当我尝试删除并再次导入它似乎有一个classes.dex文件,我不能删除,我必须重新启动我的电脑允许删除,我必须强制程序关闭。
我在这个网站上搜索过,他们说保持打开模拟器,但对我来说不起作用。
When I try to remove and import it again seem there is a classes.dex file which I cannot delete, I have to restart my computer for it to allow to delete and I have to force the program to close. I have searched at this website and they said keep open the emulator but it doesn't work for me.
下面是我添加的连接编码。
below is the connecting coding that i added.
//check internet connection
private boolean chkConnectionStatus(){
ConnectivityManager connMgr = (ConnectivityManager)
this.getSystemService(Context.CONNECTIVITY_SERVICE);
final android.net.NetworkInfo wifi =
connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
final android.net.NetworkInfo mobile =
connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
if( wifi.isAvailable() ){
return true;
}
else if( mobile.isAvailable() ){
return true;
}
else
{
Toast.makeText(this, "Check your internet" , Toast.LENGTH_LONG).show();
return false;
}
}
推荐答案
被解决了,它是由卡巴斯基反病毒造成的。谢谢你所有的帮助
problem was solved, it is caused by kaspersky anti-virus.Thank you for all help
这篇关于日食卡在运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!