Unity 项目 在 安卓 手机上 真机调试 通过 adb 来进行 安装 Unity 打包好 的apk。
一些报错
在Unity编辑器中,adb服务没有启用,报错。
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.
其他 类似 手机助手占用 端口,导致 adb 服务器没有启动,报错。
CommandWithNoStdoutInvokationFailure: Unable to start ADB server. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
检查JDK,SDK以及其他的Adb服务器都是正常 ,最后发现是 电脑上 插了一个 USB充电,导致的报错。
CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor.
在cmd.exe命令提示符中
adb端口被占用,报错。
adb: usage: unknown command device
在cmd.exe中输入adb forward tcp:54999 localabstract:Unity-com.DefaultCompany.test,报错。
adb: usage: unknown command foward
Adb服务启用
如果在 任务管理器 中 没有看到 adb.exe 进程,说明 adb服务器没有启动,或者 是 某些 手机助手 占用了端口。
adb的安装(参考资料1)
配置adb环境,WIN10-开始-设置-系统-关于-高级系统设置-
(参考