1.在项目中的gradle.properties全局配置中设置:
android.injected.testOnly=false
2.adb 加-t
adb install -t app-debug.apk
上面两个方法亲测有效。
本文提供了两种有效的方法来解决在Android开发中遇到的测试应用无法正常安装的问题。首先,可以在gradle.properties文件中设置android.injected.testOnly为false。其次,使用adb命令时添加-t参数,如adb install -t app-debug.apk。
1.在项目中的gradle.properties全局配置中设置:
android.injected.testOnly=false
2.adb 加-t
adb install -t app-debug.apk
上面两个方法亲测有效。
1411