Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Studio Run 出现 INSTALL_FAILED_TEST_ONLY #215

Open
bingoogolapple opened this issue May 23, 2020 · 0 comments
Open

Android Studio Run 出现 INSTALL_FAILED_TEST_ONLY #215

bingoogolapple opened this issue May 23, 2020 · 0 comments

Comments

@bingoogolapple
Copy link
Owner

bingoogolapple commented May 23, 2020

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

  • 方案一:gradle.properties 增加如下内容
android.injected.testOnly=false
  • 方案二:先在命令行里通过./gradlew assembleDebug打包,然后再 adb install xxxx.apk
  • 方案三:adb install -r -t xxx.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant