当我尝试通过执行以下命令来运行
Android测试时:
./gradlew connectedDebugAndroidTest
发生以下错误:
com.android.builder.testing.ConnectedDevice > No tests found.[devicename] Failed No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations). :connectedDebugAndroidTest Failed FAILURE: Build Failed with an exception.
我没有对build.gradle或gradle-wrapper.properties文件进行任何更改.
通过将所有内容更新到最新版本(gradle,android插件,构建工具等)无法解决该问题
所有测试以前都是成功的.什么可能导致这种神秘的回归?谢谢.