第一个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各位大神麻烦看看。

解决方案 »

  1.   

    See Console for details
    到控制台看
      

  2.   

    楼主,你再仔细看看,是不是你run你的程序的时候,选择的是Run as-->Android JUnit Test这个选项?
    你应该选择Run as-->Android Application 即可.
      

  3.   

    你要是以单元测试运行的话,要在AndroidManifest.xml中的<manifest>节点下加
    <instrumentation android:name="android.test.InstrumentationTestRunner"
      android:targetPackage="com.xxx.xxx" android:label="Tests for My App" />
    其中"com.xxx.xxx"为你测试类所在的包名。