在build.gradle文件中添加以下依赖项:
testImplementation 'androidx.test:core-ktx:1.4.0' testImplementation 'androidx.test.ext:junit-ktx:1.1.3' testImplementation 'androidx.arch.core:core-testing:2.1.0'
然后,通过以下方式对测试进行运行:
上一篇:AndroidStudioArcticFox中的Circleprogress问题
下一篇:AndroidStudioArcticFox中的文本显示为方块