在gradle.properties文件中添加 一行配置 ,然后 重新编译生成apk
android.injected.testOnly=false
如下图:
project工程下 -> app -> build -> outputs -> apk -> debug
https://blog.csdn.net/a704397849/article/details/107105758