androidx.test.ext.junit.runners报错及error running app default activity not found错误
使用工具:IDEA 2019
1,androidx.test.ext.junit.runners报错
打开这个文件:
将该文件内报错内容注释,编译,
2,error running app default activity not found错误
如图:
解决方法:
点击这里,选择“Nothing”
2.打开Android目录下第一个配置文件,
在你需要设置启动活动的内容中添加如下内容,
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter>
如我这边设置的welcome页为启动页,将这4行添加进去。
再次编译,可成功运行app,(运行之后可将之前设置的“Nothing”修改,已不会报错。