安卓真机测试: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中的大小写

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

おすすめ

転載: blog.csdn.net/pyf_914406232/article/details/106119031