我编写了一个在多个进程中运行活动的应用程序。
我通过为我的应用程序创建一个新的测试项目集目标包来尝试 Robotium。当我执行它时,测试停止并显示以下错误消息:
Error in testDisplayBlackBox:
java.lang.RuntimeException: Intent in process com.abc.def resolved to different process com.abc.def:mail: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.abc.def/com.abc.def.email.activity.Welcome }
at android.app.Instrumentation.startActivitySync(Instrumentation.java:377)
at android.test.InstrumentationTestCase.launchActivityWithIntent(InstrumentationTestCase.java:119)
at android.test.InstrumentationTestCase.launchActivity(InstrumentationTestCase.java:97)
at android.test.ActivityInstrumentationTestCase2.getActivity(ActivityInstrumentationTestCase2.java:104)
at com.abc.def.test.TestApk.setUp(TestApk.java:31)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)
Test results for InstrumentationTestRunner=.E
Time: 0.027
FAILURES!!!
Tests run: 1, Failures: 0, Errors: 1
如果我手头有源代码,是否有可能有任何解决方法?