Installation did not succeed.The application could not be installed: INSTALL_FAILED_T

Installation did not succeed.
The application could not be installed.
Installation failed due to: 'UNKNOWN'

因为Android Studio 3.0会在debug apk的manifest文件application标签里自动添加 android:testOnly="true"属性,导致IDE中run跑出的apk在大部分手机上只能用adb install -t 来安装,在oppo手机上甚至安装不了

解决办法
在gradle.properties(项目根目录或者gradle全局配置目录 ~/.gradle/)文件中添加android.injected.testOnly=false

 

你可能感兴趣的:(Android-studio)