Assert变红,提示:Add library ‘Gradle:junit:junit:4.13.2‘ to classpath

打开Project Structure-->Dependencies-->Modules-->app,查到junit:4.13.2,如下:

看到有这个Dependency。然后,在下面Details里的Configuration当前是testImplementation,换成Implementation,如下:

点“OK“,返回。发现Assert变红的情况消失,问题解决:

猜你喜欢

转载自blog.csdn.net/weixin_45046069/article/details/133640292
今日推荐