I believe you'll get this error message if there is no Android app
with package name "com.android.abc.providers" installed on the device.
Without more context it will be difficult to diagnose your problem.
You can use this command "adb shell pm list packages" to retrieve the
list of packages installed on the device.

Are your tests included in the app with packageName
"com.android.abc.providers", or is that a separate application?


On Mon, Jun 8, 2009 at 10:56 PM, aby<orz0...@gmail.com> wrote:
>
> hi,
> I want to build a test program to test my content provider. The  steps
> as follows:
>
> 1.Create project and modify Matifest file
>
> <instrumentation android:name="android.test.InstrumentationTestRunner"
>                     android:targetPackage="com.android.abc.providers"
>                     android:label="ABC Provider tests"/>
>
> 2. New a ProviderTestCase2 class for testing
>
> public class ABCProviderTest extends ProviderTestCase2<ABCProvider> {
>
>    public TaskProviderTest(Class< ABCProvider > providerClass,
>            String providerAuthority) {
>        super(ABCProvider.class, "com.android.abc.providers");
>    }
>
> 3. And I want to checkout this project can is runnable or not, but log
> shows
>
>  Test run failed: Unable to find instrumentation target package:
> com.android.abc.providers
>
> I'm sure all name are correct, and  log only shows
>
> 06-09 05:54:53.670: DEBUG/AndroidRuntime(2518): >>>>>>>>>>>>>>
> AndroidRuntime START <<<<<<<<<<<<<<
> 06-09 05:54:53.670: DEBUG/AndroidRuntime(2518): CheckJNI is ON
> 06-09 05:54:53.890: DEBUG/AndroidRuntime(2518): --- registering native
> functions ---
> 06-09 05:54:53.899: INFO/jdwp(2518): received file descriptor 20 from
> ADB
> 06-09 05:54:53.910: INFO/jdwp(2518): Ignoring second debugger --
> accepting and dropping
> 06-09 05:54:54.630: WARN/ActivityManager(588): Unable to find
> instrumentation target package: com.android.abc.providers
> 06-09 05:54:54.699: DEBUG/AndroidRuntime(2518): Shutting down VM
>
> Is there any problem?
> Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to