Unity CommandInvokationFailure:无法将APK安装到设备。没有权限

时间:2017-02-23 02:23:16

标签: android unity3d build

我尝试将Unity应用程序构建到Android并收到下一个错误:

CommandInvokationFailure: Unable to install APK to device. 
Please make sure the Android SDK is installed and is properly configured in the Editor. 
See the Console for more details. 
/Users/tedromanus/Library/Android/sdk/platform-tools/adb -s "0123456789ABCDEF" install -r "/Users/tedromanus/Workspace/SoftServe/GPSTest/Builds/GPSTest.apk"

stderr[

]
stdout[
[  0%] /data/local/tmp/GPSTest.apk
[  0%] /data/local/tmp/GPSTest.apk
[  0%] /data/local/tmp/GPSTest.apk
[  1%] /data/local/tmp/GPSTest.apk
[  1%] /data/local/tmp/GPSTest.apk
[  1%] /data/local/tmp/GPSTest.apk
[  1%] /data/local/tmp/GPSTest.apk
[  2%] /data/local/tmp/GPSTest.apk
[  2%] /data/local/tmp/GPSTest.apk
[  2%] /data/local/tmp/GPSTest.apk
adb: error: failed to copy '/Users/tedromanus/Workspace/SoftServe/GPSTest/Builds/GPSTest.apk' to '/data/local/tmp/GPSTest.apk': 
Permission denied
]
exit code: 255

我该如何解决? 谢谢你的回复。

1 个答案:

答案 0 :(得分:3)

您拥有 tedromanus 用户文件夹吗?如果没有,请确保您具有访问该文件夹的管理员权限。

如果您在设备上有多个用户帐户,则可能会确保您使用管理员帐户,如果仍然无效,请删除其他用户帐户的任何应用跟踪并重试,< / p>

否则,我在其他地方看到一个有根的Android设备可能有这个问题。