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

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

添加后如下可成功运行

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

相关文章: