问题描述
我所有的 androidTest 都出错:
05/01 21:24:26: Launching 'ExampleInstrumentedT...' on Nexus 5 API R.
Install successfully finished in 1 s 870 ms.
Running tests
$ adb shell am instrument -w -m -e debug false -e class 'com.mrahimy.mytestapplication10.ExampleInstrumentedTest' com.mrahimy.mytestapplication10.test/androidx.test.runner.AndroidJUnitRunner
Test running failed: Process crashed.
Tests ran to completion.
这里的消息说:Test running failed: Process crashed.
logcat 中还有一条相关消息:
RuntimeException: Unable to find instrumentation info for:
ComponentInfo{com.mrahimy.mytestapplication10.test/androidx.test.runner.AndroidJUnitRunner
这只是在Android Studio 4.1.3的file -> new project
中选择“Fragment + ViewModel”或“No Activity”创建的模板项目
示例插装测试与原来一样。我没有做任何改变。 gradle 包装器版本是 gradle-6.5-bin.zip
。 kotlin 版本为 1.4.32,gradle 工具版本为 4.1.3
我搜索过 stackoverflow,答案要么适用于以前版本的 Android Studio,要么问题来自一个完全不同的框架。
那么我该怎么做才能看到配置有什么问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)