我已经看到在Unity中使用Android设备构建类似的错误,但在花费数小时研究后似乎无法找到解决方案。我正在从Unity(2017.3.0f3)构建到运行Fire OS 5.4.0.1的Fire平板电脑。我建立了一个vuforia基本项目,在Unity中使用网络摄像头运行良好,但在尝试构建时遇到一个主要错误(CommandInvoktionFailure:无法在设备上安装APK)。昨天我尝试使用EasyAR套件构建一个不同的场景,但是无法加载场景,虽然它对设备构建得很好......现在它根本不会构建,但场景完美无缺Unity播放器。
我新安装了Android studio(android.sdk)和我昨天需要的Java SDK。我很新,所以我打赌我错过了一些简单的东西但是我要放弃了! :(
从Unity控制台:
CommandInvokationFailure: Unable to install APK on the device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
C:\Users\Jesi\AppData\Local\Android\Sdk\platform-tools\adb.exe -s "0092060644210FQ5" install -r "C:\Users\Jesi\Creative Cloud Files\Jessica's Files\SI-COLOR-AR-EXP\SI-COLOR-AR-EXP.apk"
stderr[
]
stdout[
[ 0%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 0%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 0%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 0%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 0%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 1%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 1%] /data/local/tmp/SI-COLOR-AR-EXP.apk
...
[ 15%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 16%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 16%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 16%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 16%] /data/local/tmp/SI-COLOR-AR-EXP.apk
[ 16%] /data/local/tmp/SI-COLOR-AR-EXP.apk
adb: error: failed to copy 'C:\Users\Jesi\Creative Cloud Files\Jessica's Files\SI-COLOR-AR-EXP\SI-COLOR-AR-EXP.apk' to '/data/local/tmp/SI-COLOR-AR-EXP.apk': no response: Broken pipe
]
exit code: 1
我仔细检查了我的计算机是否在命令提示符下多次识别我的设备(确实如此),确保启用调试功能(重新执行该过程几次)仍然没有。任何帮助将不胜感激!