第一个android程序,每次运行都报错:
Hello does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml运行时提示:Hello is configured correctly for running tests,See Console for details各位大神麻烦看看。
Hello does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml运行时提示:Hello is configured correctly for running tests,See Console for details各位大神麻烦看看。
到控制台看
你应该选择Run as-->Android Application 即可.
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.xxx.xxx" android:label="Tests for My App" />
其中"com.xxx.xxx"为你测试类所在的包名。