Android ADB安装apk失败:INSTALL_FAILED_TEST_ONLY

droid ADB安装apk失败:INSTALL_FAILED_TEST_ONLY

解决:

1、一种是在代码里面加,

在gradle.properties配置文件加入属性,把testOnly设置为false

Android安装apk失败:The application could not be installed: INSTALL_FAILED_TEST_ONLY-CSDN博客Android安装apk失败TheapplicationcouldnotbeinstalledINSTALL_FAILED_TEST_ONLY。通常会发生在国产手机厂商的手机上,原因是国产手机厂商把属性为debug的app取消安装权限。https://blog.csdn.net/zhangphil/article/details/126097317

2、另外一种是通过adb安装时候,加 -t 参数:

adb install -t xxxxxxx.apk

猜你喜欢

转载自blog.csdn.net/zhangphil/article/details/130018152