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