废话不说,一直报错。网上介绍的都是缺少如下声明之类。

但注意的是工程配置是导出junit包, 路径为  project上右键 --> properties -> java build path --> order and export --> 选中 junit -->重新编译测试

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:andro >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >

<activity
android:name="hp.smpf.formddx.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<uses-library android:name="android.test.runner" />

</application>

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="hp.smpf.formddx" />

</manifest>

相关文章:

  • 2021-10-11
  • 2021-08-20
  • 2022-01-21
  • 2021-09-21
  • 2022-12-23
  • 2021-12-24
  • 2021-05-17
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-06-19
  • 2021-12-09
  • 2022-02-07
相关资源
相似解决方案