Cannot run ./gradlew connectedInstrumentTest

情到浓时终转凉″ 提交于 2019-12-24 01:53:48

问题


I set up a basic instrument test in Android Studio in my src/androidTest/java folder. Now I want to run this test and everywhere I get the information to call ./gradlew connectedInstrumentTest on my OS X terminal. But that results in an error "Task 'connectedInstrumentTest' not found in project".
If I look at ./gradlew tasks the instrument task is not listed. Do I have to set anything else up in my project/build.gradle? No tutorial or docu tells me to do so, so I'm a bit confused.
Has anyone an explanation for that?
Cheers
K.


回答1:


If you are using the new plugin version 0.9, then the task name is now connectedAndroidTest.

You should just call connectedCheck though an it'll call it automatically including possibly other tests.



来源:https://stackoverflow.com/questions/22409603/cannot-run-gradlew-connectedinstrumenttest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!