使用Androidstudio3.5.3版本日常开发中,连接OPPO手机运行公司项目,编译没问题,安装的时候报:INSTALL_FAILED_TEST_ONLY
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Installation failed due to: 'null'
Retry
根据这个问题在网上查找资料,有些人说在AndroidManifest.xml文件中删掉android:testOnly="true" 或值改成 “false”,也有人说Androidstudio3.0 以后会默认在AndroidManifest.xml文件中添加android:testOnly="true" 。
我的解决办法是:在gradle.properties文件中添加 :android.injected.testOnly=false 即可