Android vivo手机调试无法安装apk问题解决方案

最近在一个vivo的测试机上面测试测程序,发现在debug的时候apk安装显示错误:

Installation failed with message INSTALL_FAILED_TEST_ONLY.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

解决方案:

在android studio里面找到gradle.properties,添加:

android.injected.testOnly=false;

 

你可能感兴趣的:(Android基础)