【发布时间】:2016-10-16 20:52:04
【问题描述】:
运行 ionic build android 命令时出现以下错误。我花了几个小时在谷歌上搜索它,但找不到任何解决方案。请大家帮忙。
FAILURE:构建失败并出现异常。
出了什么问题 任务“:mergeDebugResources”执行失败。 D:\Ionic_Workspace\MyProject_Dev\MyProject_Workspace_1.1\MyProject 1.1\platforms\and android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.6.1\res\drawable-t vdpi-v4\common_google_signin_btn_text_light_disabled.9.png:错误: Windows 上的文件路径太长,请保持在 240 个字符以下: D:\Ionic_Workspace\MyProject_Dev\MyProject_Workspace_1.1\MyProject 1.1\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-b ase\9.6.1\res\drawable-tvdpi-v4\common_google_signin_btn_text_light_disabled.9.png
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。运行 --info 或 --debug 选项以获得更多日志输出。错误:cmd:命令失败,退出代码 1 错误输出:FAILURE:构建失败,出现 例外。
出了什么问题:任务“:mergeDebugResources”执行失败。 D:\Ionic_Workspace\MyProject_Dev\MyProject_Workspace_1.1\MyProject 1.1\platforms\and android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.6.1\res\drawable-t vdpi-v4\common_google_signin_btn_text_light_disabled.9.png:错误: Windows 上的文件路径太长,请保持在 240 个字符以下: D:\Ionic_Workspace\MyProject_Dev\MyProject_Workspace_1.1\MyProject 1.1\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-b ase\9.6.1\res\drawable-tvdpi-v4\common_google_signin_btn_text_light_disabled.9.png
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。运行 --info 或 --debug 选项以获得更多的日志输出。
【问题讨论】: