Error running helloworldtest from the tutorial

By : paul

I'm getting the following error whenever I try to run a test. I have also tried to load some of the samples and test them, but I get the same error.

This is generated following the tutorials found here

Thanks for any help

java.lang.RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=ca.imt.helloandroid.HelloAndroid/ca.imt.helloandroid.HelloAndroid }
at android.test.InstrumentationTestCase.launchActivityWithIntent(
at android.test.InstrumentationTestCase.launchActivity(
at android.test.ActivityInstrumentationTestCase2.getActivity(
at ca.imt.helloandroid.test.HelloAndroidTest.setUp(
at android.test.AndroidTestRunner.runTest(
at android.test.AndroidTestRunner.runTest(
at android.test.InstrumentationTestRunner.onStart(
By : paul


Maybe the SDK ins't set up properly? try re-installing the Android SDK (

By : Maj. Fail

Could it be that in your test class' constructor you have the following code:

public HelloAndroidTest() {
    super("com.example.helloandroid.HelloAndroid", HelloAndroid.class);

instead of this code:

public HelloAndroidTest() {
    super("com.example.helloandroid", HelloAndroid.class);


I just ran into a similar issue, and that was it's solution.

This video can help you solving your question :)
By: admin