美文网首页
Android Studio真机运行INSTALL_FAILED

Android Studio真机运行INSTALL_FAILED

作者: 哆啦A猛 | 来源:发表于2021-05-19 11:14 被阅读0次

Android Studio真机运行失败错误提示如下:

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

List of apks:
[0] '/Users/XXX/XXX/XXXX/app/build/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'null'

解决方法在gradle.properties中添加android.injected.testOnly=false

android.useAndroidX=true
android.injected.testOnly=false

相关文章

网友评论

      本文标题:Android Studio真机运行INSTALL_FAILED

      本文链接:https://www.haomeiwen.com/subject/bpqpjltx.html