首页 > Android Studio单元测试Instantiating tests...一直无响应

Android Studio单元测试Instantiating tests...一直无响应

Android Studio2.1.1正式版,进行单元测试,在自带的ApplicationTest类下添加下列代码

public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);
    }

    public void testMethod1(){
        Log.d("Me", "加油吧");
    }

}

运行一直陷入Instantiating tests...等待状态,光圈一直在转,绿色进度条不动,运行效果如下

google无果,求科普!


http://stackoverflow.com/questions/35496117/android-tests-often-stall-at-instantiating-tests

http://stackoverflow.com/questions/30437224/why-is-android-studio-instantiating-tests-each-time

少年,除了google,你难道不去sof看看,这里的回答看对你有没有帮助


建议你把Instant Run 这个关闭前两个选项


把Instant Run所有选项取消勾选,再运行一遍,亲测可用。

【热门文章】
【热门文章】