android.util.AndroidException: INSTRUMENTATION_FAILED:

前端 未结 3 1356
星月不相逢
星月不相逢 2021-01-31 09:57

I have a simple android app and I am testing it using my phone. So, there are two ways to do that :

  1. Using eclipse
  2. Using CLI

Problem:

3条回答
  •  轮回少年
    2021-01-31 10:07

    A more precise explanation/approach is the following:

    Make sure you do

    adb install -r bin/<>-debug.apk 
    

    from both from tests and the app directory.

    After that ant test should work from the tests directory. (My guess is that there was a missing dependency to the app from test package - which was causing the failure).

    Other than the above little hack, rest of the procedure I followed came from the android testing introduction on http://developer.android.com/.

提交回复
热议问题