当前位置:   article > 正文

Installation failed due to: ‘‘cmd package install-create -r -t --user current --full --dont-kill -t_installation failed due to: ''cmd package install-

installation failed due to: ''cmd package install-create -r -t --user curren

Android中AndroidJUnit4 运行单元测试时报错, 

错误是:

Installation failed due to: ''cmd package install-create -r -t --user current --full --dont-kill -t -g -S 7871513' returns error 'Unknown failure: Security exception: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag
java.lang.SecurityException: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag
解决方案:
开发者选项中,开启USB调试既可解决这个问题

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号