[英]How to restore a deleted RunConfiguration in Android Studio?
I was trying to deal with a testing-related problem and I followed this advice: https://stackoverflow.com/a/32267762/2576903 我试图处理与测试相关的问题,我遵循了这个建议: https : //stackoverflow.com/a/32267762/2576903
Now whenever I try to run my tests, I get prompted to choose a device. 现在,每当我尝试运行测试时,都会提示我选择设备。 How do I restore that build configuration?
如何还原该构建配置?
I tried git commit to see changed files, but it seems that it was somewhere outside of the project folder. 我尝试了git commit来查看更改的文件,但是似乎它在项目文件夹之外。 I also tried invalidating android studio's caches but nothing seems to work.
我还尝试使android studio的缓存无效,但似乎没有任何效果。
I tried creating another test class automatically (by control + enter on the name of a regular POJO) but the configuration wasnt created. 我尝试自动创建另一个测试类(通过控制+输入常规POJO的名称),但配置没有创建。
Went to the folder of my current test class, created a new class inserted annotation @RunWith(MockitoJUnitTestRunner.class)
去了我当前测试类的文件夹,创建了一个新类插入注释
@RunWith(MockitoJUnitTestRunner.class)
right clicked the newly created class' name -> Run
and it created the configuration. 右键单击新创建的类'name - >
Run
,它创建了配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.