Why is library module android.support.test not visible in add dependency

前端 未结 7 635
时光说笑
时光说笑 2020-12-14 08:01

I am adding Espresso to my project in Android Studio. I have installed the Support Repository and in fact have already been using pieces of it. Then I added these dependenci

7条回答
  •  隐瞒了意图╮
    2020-12-14 08:31

    I've had the same problem and it was solved by hitting Clean Project from the Build tab in Android Studio.

    After hitting Clean Project, watch the Gradle Console for potential errors and if it completes the cleaning successfully, simply go into any one of your test classes and type in "Espresso" and the smart code completion should offer suggestions. Everything should automatically import as you use Espresso after that.

    Hope this helps!

提交回复
热议问题