粘出报错信息,

如果是这个报错:Error building Player: UnityException: No platforms found

就用android的sdk manager更新android的sdk

如果是这个报错:Error building Player: UnityException: Couldn't find Android device

No Android devices found. If you are sure that device is attached then it might be USB driver problem, for details please check Android SDK Setup section in Unity Manual.

就启动android虚拟机 AVD Manager或者连接上手机调试设备

如果是这个报错:android Installation error: INSTALL_FAILED_CONTAINER_ERROR

就在untiy3d的PlayerSetting中,将Install Location设置由原来的PreferExternal改成Automatic。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐