1. 程式人生 > 其它 >安卓打包錯誤:The application could not be installed: INSTALL_FAILED_TEST_ONLY

安卓打包錯誤:The application could not be installed: INSTALL_FAILED_TEST_ONLY

技術標籤:Androidandroidandroid studio

問題

今天在另一部安卓裝置機打包專案時出現了一個問題
安卓機在安裝過程中顯示安裝失敗,且在PC端顯示如下錯誤:
The application could not be installed: INSTALL_FAILED_TEST_ONLY
在這裡插入圖片描述

解決辦法

gradle.properties中新增一句

android.injected.testOnly=false
//注意大小寫

在這裡插入圖片描述

結果

再次打包安裝,闊以了