我不知道这个错误。我无法理解"遥控器"。是那个 目录或什么?当我使用HTC M8时,我收到了这个错误。但它适用于我的Nexus 7.
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.
C:/Users/user/AppData/Local/Android/sdk\platform-tools\adb.exe -s "FA451WM07327" install -r "D:\unity專題\WAN0430-1\WAN\Temp\StagingArea\Package.apk"
stderr[
]
stdout[
[ 0%] /data/local/tmp/./.
[ 0%] /data/local/tmp/./.
adb: error: failed to copy 'D:\unity專題\WAN0430-1\WAN\Temp\StagingArea\Package.apk' to '/data/local/tmp/./.': remote Is a directory
D:\unity專題\WAN0430-1\WAN\Temp\StagingArea\Package.apk: 0 files pushed. 93.5 MB/s (196608 bytes in 0.002s)
rm: /data/local/tmp/.: Is a directory
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Install (System.String apkfile, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.UploadAndStartPlayer (UnityEditor.Android.PostProcessor.PostProcessorContext context, Boolean retryUpload)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
答案 0 :(得分:0)
请勿使用中文路径,因此请更改此
D:\unity專題\WAN0430-1\WAN\Temp\StagingArea\Package.apk
使用:
D:\unity\WAN0430-1\WAN\Temp\StagingArea\Package.apk