安卓真机测试:The application could not be installed: INSTALL_FAILED_TEST_ONLY解决方案

android stdio打包的时候晕倒一个问题,我想在手机上跑一下,结果包都出来了,安装的时候报错了:

Installation did not succeed.

The application could not be installed: INSTALL_FAILED_TEST_ONLY 

在真机调试时下载软件后安装失败,apk错误
解决办法:在gradle.properties中添加 android.injected.testOnly=false

注意testOnly中的大小写

安卓真机测试:The application could not be installed: INSTALL_FAILED_TEST_ONLY解决方案_第1张图片

再运行一下,发现问题解决了

你可能感兴趣的:(安卓真机测试:The application could not be installed: INSTALL_FAILED_TEST_ONLY解决方案)