The application could not be installed: INSTALL_FAILED_TEST_ONLY

一、问题

android studio调试apk的时候安装失败

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Installation failed due to: 'null'

二、解决方案

在项目根目录的gradle.properties文件添加以下配置

android.injected.testOnly=false
原文地址:https://www.cnblogs.com/diffx/p/12329054.html