我试图创建我的第一个Android应用程序。为此,我使用Android Studio 2.2.3。我已经创建了简单的应用程序与单一的活动,什么都不做,只是空的屏幕,没有别的。Android Studio无法安装应用程序
我正在开发魅族MX6和我接通下一个选项:
- 安全应用程序 - > USB安装监视器
- 设置 - >指纹和securiry - >未知来源
- 设置 - >辅助功能 - >开发人员选项 - > USB调试
还配置了udev规则。
当我按下运行按钮我看到这条消息:
Installation failed with message INSTALL_FAILED_USER_RESTRICTED.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
而且后,按OK此日志出现在控制台输出:
$ adb push /home/***/dev/android/HelloAndroid/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.android.hello.helloandroid
$ adb shell pm install -r "/data/local/tmp/com.android.hello.helloandroid"
pkg: /data/local/tmp/com.android.hello.helloandroid
Failure [INSTALL_FAILED_USER_RESTRICTED]
$ adb shell pm uninstall com.android.hello.helloandroid
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
有人可以解释如何解决这一问题?
似乎有人有类似的麻烦:http://stackoverflow.com/questions/40534271/android-studio-failure-install-failed-user-restricted并有一个解决方案。 – vincenth
可能的重复 - http://stackoverflow.com/questions/40534271/android-studio-failure-install-failed-user-restricted – Dibzmania
可能重复的[Android Studio:Failure \ [INSTALL \ _FAILED \ _USER \ _RESTRICTED \] ](http://stackoverflow.com/questions/40534271/android-studio-failure-install-failed-user-restricted) – hustas88