android - Debug instrumentation test -



android - Debug instrumentation test -

i have issue in instrumentation test (for utilize robotium), decided debug it. run test command line gradlew connectedandroidtest, runs android studio (v0.8.14) selecting specific gradle task. if seek debug gradle task, error unable open debugger port : java.net.socketexception "socket closed" , test continues run (without debugging). there way debug instrumentation test (with ide) or missing in setup?

update: however, works on emulator!

i had same problem. you're running tests in wrong way. instead of clicking "debug" on gradle task "connectedandroidtest" go "edit run configurations" in android studio. click "plus" sign , add together new "android tests" configuration. - select module tests reside in (probably main module of app) , save configuration. click "debug" on newly created config.

android debugging

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -