The application could not be installed: INSTALL_FAILED_TEST_ONLY Installation failed due to: 'null'

Android真机调试报错如下:

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Installation failed due to: 'null'

解决方法:

在gradle.properties文件中添加

android.injected.testOnly=false

添加后如下可成功运行

猜你喜欢

转载自blog.csdn.net/qq_37980878/article/details/105860426