一、INSTALL_FAILED_TEST_ONLY 问题提示
二、分析
Android Studio 3.0 + 会在 debug apk 的manifest文件application标签里自动添加 android:testOnly="true"属性
详细链接:https://developer.android.com/guide/topics/manifest/application-element
三、解决方案
(一)在项目中的gradle.properties全局配置中设置
android.injected.testOnly = false
(二)编译添加 -t
adb install -t app-debug.apk
或者
adb install -t *.apk