Hello:

My guess is you are missing the  <uses-library
android:name="android.test.runner" /> declaration in your project's
AndroidManifest.xml:

Here's a full code slice:

    <!-- We add an application tag here just so that we can indicate that
         this package needs to link against the android.test library,
         which is needed when building test cases. -->
    <application>
        <uses-library android:name="android.test.runner" />
    </application>

Regards,
Brett.

On Mon, Oct 26, 2009 at 2:47 AM, Richard Zhao <[email protected]> wrote:

>
> Hi,
>
> I got a cmpile error when i use the ActivityInstrumentationTestCase2
> to test my code.
>
> cannot find symbol
> symbol  : class ActivityInstrumentationTestCase2
> location: package android.test
> import android.test.ActivityInstrumentationTestCase2;
>                    ^
>
> I did import the android.test.ActivityInstrumentationTestCase2
> package. I don't know where the problem is. I hope someone can help
> me. Does anyone know any article about
> ActivityInstrumentationTestCase2? Thanks for help.
>
> Richardz
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to