Heim > Fragen und Antworten > Hauptteil
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无果,求科普!
PHPz2017-04-17 17:19:11
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看看,这里的回答看对你有没有帮助