当Android studio用真机进行调试时,安装app失败,而且还报以下错误:

Session 'app': Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Retry

如图:

Android studio用真机进行调试时报错The application could not be installed: INSTALL_FAIL_debug

解决方法:

只需要在gradle.properties

文件增加​​android.injected.testOnly=false​

Android studio用真机进行调试时报错The application could not be installed: INSTALL_FAIL_debug_02