The application could not be installed: INSTALL_FAILED_TEST_ONLY

今天使用“真我”手机(一个国产品牌realme)进行调试Android项目,run后出现了如下错误。
而在华为手机上进行调试,没有出现问题。

问题整体描述:Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Installation failed due to: ‘null’

The application could not be installed: INSTALL_FAILED_TEST_ONLY_第1张图片

重点错误:INSTALL_FAILED_TEST_ONLY
主要是:test_only

解决

在项目根目录gradle.properties中,增加配置:

android.injected.testOnly=false

参考:https://blog.csdn.net/u010358168/article/details/81286270

你可能感兴趣的:(Android调错,Android专栏)