bingoogolapple.github.io icon indicating copy to clipboard operation
bingoogolapple.github.io copied to clipboard

Android Studio Run 出现 INSTALL_FAILED_TEST_ONLY

Open bingoogolapple opened this issue 4 years ago • 0 comments

通过 AS 运行时会自动注入 testOnly 为 true

  • 方案一:gradle.properties 增加如下内容
android.injected.testOnly=false
  • 方案二:先在命令行里通过./gradlew assembleDebug打包,然后再 adb install xxxx.apk
  • 方案三:adb install -r -t xxx.apk

bingoogolapple avatar May 23 '20 11:05 bingoogolapple