使用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 即可