【发布时间】:2016-04-03 22:18:06
【问题描述】:
编辑:运行 Windows 8.1
完全最新的 Android Studio 检测手机(在 5.1 上植根三星 Note 3)。它是兼容的。开发者模式开启,USB调试开启等。连接手机拖拽从来没有问题。
但是,每当我尝试将其放在手机上时...
Installation failed with message null.
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? (YES / NO)
无论我按是或否,我都会得到同样的错误。
Target device: samsung-sm_n920t-93eb26a9
Installing APK: C:\Users\user\AndroidStudioProjects\CopySunshine\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/com.sdg.copysunshine
Installing com.sdg.copysunshine
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.fox.pac"
pkg: /data/local/tmp/com.fox.pac
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.INSTALL_PACKAGES.
DEVICE SHELL COMMAND: pm uninstall com.fox.pac
我可以使用模拟器(如 Genymotion)就好了,只是有 Android Studio / Emulators 会使我的计算机有时会发热,所以如果可以的话,我宁愿不这样做......
我尝试过的解决方案是放置“android.permission.INSTALL_PACKAGES”。进入清单,但随后我收到一条消息,表明只有系统应用程序具有该权限。
我有另一部手机,一个在 4.4.2 上运行的植根 S4。但是每当我连接它时,手机的用户界面就会完全崩溃......这是一个完全不同的问题。
【问题讨论】:
标签: java android crash installation apk