17:18 Gradle build finished in 2 s 904 ms
17:18 Failed to commit install session 1905086282 with command cmd package install-commit 1905086282. Error: INSTALL_FAILED_TEST_ONLY
17:18 Error
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Retry
17:18 Session 'app': Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Retry
点击
按钮运行调试程序时 , 会在 清单文件的 application 标签中自动生成
android:testOnly="true"
属性 , 有些手机不支持此类应用安装 ;
在 " 菜单栏 / Build " 下 :
在 gradle.properties 中配置
android.injected.testOnly=false
内容 ;