robotium:针对只有APK的工程,在debug或代码中执行没有关问题,但是到工程中右键执行报错

robotium:针对只有APK的工程,在debug或代码中执行没问题,但是到工程中右键执行报错
具体问题是这样的:
1.我先针对APK包用re-sign.jar工具进行了重签名;
2.然后就是按照robotium的具体步骤,在androidmanifest文件中更改了报名,在代码中重写了方法
接着问题来了,这个时候如果我直接在左侧工程目录中对该测试工程点击右键,选择run as->Android JUnit Test,就会报一个Test run failed: Instrumentation run failed due to 'Process crashed.'的错误; 但是!!如果我直接啊class的代码中,对testcase点击右键,选择run as->Android JUnit Test,或者我在debug下点执行,自动化测试用例就能正常运行!!!模拟器也正常启动APP了!
研究了2天了,完全没弄明白到底是什么原因造成的,求大神们帮忙诠释下!!
下面把我的一些东西发上来:
下面是代码
package com.example.abylongacpopup.test.test;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.robotium.solo.Solo;

import android.app.Activity;
import android.test.ActivityInstrumentationTestCase2;
import android.view.View;
import android.widget.TextView;

public class TheWithApkTestcase extends ActivityInstrumentationTestCase2 {

private static final String LAUNCHER_ACTIVITY_FULL_CLASSNAME =
"cn.richinfo.android.calendar.main.ui.SplashActivity";//Splash//CalMain

private static Class launcherActivityClass;
static {
try {
launcherActivityClass = Class.forName(LAUNCHER_ACTIVITY_FULL_CLASSNAME);

catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}


private Solo solo;

public TheWithApkTestcase() throws ClassNotFoundException {

super(launcherActivityClass);
}

@Before
protected void setUp() throws Exception {
//super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}

@After
protected void tearDown() throws Exception {
//super.tearDown();
solo.finishOpenedActivities();
}

@Test
public void test() {
solo.sleep(10000);
solo.clickOnButton("稍后再说");
solo.sleep(5000);
solo.clickOnText("约你~新丰樱花峪看满山樱花,与樱花零距离浪漫邂逅");
//solo.waitForText("活动广场");

/*Activity act=solo.getCurrentActivity();
int id=act.getResources().getIdentifier("btn_Example", "id", act.getPackageName());
TextView textView=(TextView)act.findViewById(id); 
solo.clickOnView(textView);*/   
solo.sleep(10000);
//ArrayList<?> aa = solo.getCurrentViews();
}

}
下面是androidmanifest文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.abylongacpopup.test.test"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />

    <instrumentation
        android:name="android.test.InstrumentationTestRunner"
        android:targetPackage="cn.richinfo.android.calendar" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <uses-library android:name="android.test.runner" />
    </application>

</manifest>

下面是直接对工程名称右键run as后的报错信息
[2015-01-28 17:47:55 - TheAutoWithApk] ------------------------------
[2015-01-28 17:47:55 - TheAutoWithApk] Android Launch!
[2015-01-28 17:47:55 - TheAutoWithApk] adb is running normally.
[2015-01-28 17:47:55 - TheAutoWithApk] Performing android.test.InstrumentationTestRunner JUnit launch
[2015-01-28 17:47:55 - TheAutoWithApk] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'TestVirtual2'
[2015-01-28 17:47:55 - TheAutoWithApk] Uploading TheAutoWithApk.apk onto device 'emulator-5554'
[2015-01-28 17:47:56 - TheAutoWithApk] Installing TheAutoWithApk.apk...
[2015-01-28 17:48:06 - TheAutoWithApk] Success!
[2015-01-28 17:48:06 - TheAutoWithApk] Launching instrumentation android.test.InstrumentationTestRunner on emulator-5554
[2015-01-28 17:48:09 - TheAutoWithApk] Sending test information to Eclipse
[2015-01-28 17:48:49 - TheAutoWithApk] Test run finished
[2015-01-28 17:49:03 - TheAutoWithApk] ------------------------------
[2015-01-28 17:49:03 - TheAutoWithApk] Android Launch!
[2015-01-28 17:49:03 - TheAutoWithApk] adb is running normally.
[2015-01-28 17:49:03 - TheAutoWithApk] Performing android.test.InstrumentationTestRunner JUnit launch
[2015-01-28 17:49:03 - TheAutoWithApk] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'TestVirtual2'
[2015-01-28 17:49:05 - TheAutoWithApk] Application already deployed. No need to reinstall.
[2015-01-28 17:49:05 - TheAutoWithApk] Launching instrumentation android.test.InstrumentationTestRunner on emulator-5554
[color=#FF0000][2015-01-28 17:50:18 - TheAutoWithApk] Test run failed: Instrumentation run failed due to 'Process crashed.'[/color]
------解决思路----------------------
如果在命令行中安装.apk,这是已经经过正式签名的apk文件    如果你直接在项目点击运行,这种方式是debug模式自行模拟的一个签名,与你自行安装的不一直,所以导致你在apk安装了并执行之后,再从项目中运行会报错,说你已经安装了这个app     
解决办法是把虚拟机上的这个app卸载掉,然后从项目点击运行就可以了(如果项目没错的话)  若解决了请给分噢!