欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

The application could not be installed: INSTALL_FAILED_TEST_ONLY

程序员文章站 2024-02-08 10:42:28
...

Android调试程序时,App安装失败解决办法! 

Launching 'app' on vivo VA1831.
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Installation failed due to: 'null'
Retry

报这个错的原因需要在gradle.properties文件中添加以下代码就可以了:

android.injected.testOnly=false