Android Eclipse Plugin: Instrumentation Test Runner not specified

前端 未结 7 1301
抹茶落季
抹茶落季 2020-12-04 21:46

I\'m getting this error when trying to run unit tests from Eclipse with an Android Project. The list of Instrumentation Test Runners is empty in the Android preferences.

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 21:58

    One thing I noticed in this discussion that might be tripping some people up is that you need to make sure the "instrumentation" element in your manifest is a child of "manifest" and not of "application." (The examples here are correct, but this easy to mix up.)

    http://developer.android.com/guide/topics/manifest/instrumentation-element.html

    If you put your instrumentation stuff inside application, it won't be picked up, and your choices in the Eclipse ADT plugin for instrumentation runner may be blank. (But no error is thrown or shown, etc.)

提交回复
热议问题