Did you notice there is one more AndroidManifest.xml file under the /tests
folder in ApiDemos...perhaps you are missing that...
We will add more information to the docs ...

On Fri, Aug 22, 2008 at 4:50 AM, Carl H. <[EMAIL PROTECTED]> wrote:

>
> Note that the cmd line is:
>
> adb shell am instrument -e class com.novoda.runbuddy.AllTests -w
> com.novoda.runbuddy/android.test.InstrumentationTestRunner
>
> and not as previously stated:
>  adb shell am instrument -e class com.android.samples.AllTests -w
> com.novoda.runbuddy/android.test.InstrumentationTestRunner
>
> The error is still apparent
>
>
>
>
> On Aug 22, 12:18 pm, "Carl H." <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I am trying to follow the post on ApplicationInstrumentation:
> http://code.google.com/android/samples/ApiDemos/tests/src/com/android...http://code.google.com/android/samples/ApiDemos/tests/src/com/android.
> ..
> >
> > My setup is very similar then the example. I have the following in my
> > manifest:
> >         <instrumentation xmlns:android="
> http://schemas.android.com/apk/res/
> > android"
> >                 android:targetPackage="com.novoda.runbuddy"
> > android:name="android.test.InstrumentationTestRunner"
> >                 android:label="testInst" />
> >
> > And I start the instrumentation like this:
> >  adb shell am instrument -e class com.android.samples.AllTests -w
> > com.novoda.runbuddy/android.test.InstrumentationTestRunner
> >
> > I get the following error message:
> > INSTRUMENTATION_RESULT: shortMsg=Unable to instantiate instrumentation
> > ComponentInfo{com.novoda.runbuddy/
> > android.test.InstrumentationTestRunner}:
> > java.lang.ClassNotFoundException:
> > android.test.InstrumentationTestRunner in loader
> > [EMAIL PROTECTED]
> > INSTRUMENTATION_RESULT: longMsg=java.lang.RuntimeException: Unable to
> > instantiate instrumentation ComponentInfo{com.novoda.runbuddy/
> > android.test.InstrumentationTestRunner}:
> > java.lang.ClassNotFoundException:
> > android.test.InstrumentationTestRunner in loader
> > [EMAIL PROTECTED]
> > INSTRUMENTATION_CODE: 0
> >
> > I tried different combination and can not make the above work. The
> > documentation is sparse so I am not sure where I am going wrong. Why
> > would I get a class not found on android.test? There is no need for
> > permission from what I take with the new SDK.
> >
> > Any ideas?
> > ./Acsia
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to