Android Studio import existing unit tests “Unable to find instrumentation info”

前端 未结 15 1863
故里飘歌
故里飘歌 2021-02-01 12:17

So I\'m trying our Android Studio and testing a project that worked in eclipse. I got everything compiling and the application will launch just fine, but I can\'t get my unit te

15条回答
  •  春和景丽
    2021-02-01 13:01

    Explanation and solution

    This error "Unable to find instrumentation" appears if targetPackage declared in the manifest of the test application is different from the package declared in the manifest of the application being tested:

    • Application being tested:

      
      
    • Test application :

      
      

提交回复
热议问题