gpt4 book ai didi

android - 任务 ‘:mergeDebugResources’ ionic 2 执行失败

转载 作者:行者123 更新时间:2023-11-29 14:44:45 26 4
gpt4 key购买 nike

我正在使用 ionic 2 开发应用程序,运行“ionic build android”后出现以下错误

Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeDebugResources'.
> Error: com.android.builder.internal.aapt.AaptException: Failed to crunch file C:\TFS\aplicativos\Hibrido\gerador-argumentos-politico\projeto\platforms\androi
d\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_backgroun
d.9.png into C:\TFS\aplicativos\Hibrido\gerador-argumentos-politico\projeto\platforms\android\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\common_go
ogle_signin_btn_icon_light_normal_background.9.png

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

有人知道我是做什么的吗?到目前为止,我已经尝试过 ionic 论坛中的所有解决方案,但所有解决方案都不适合我。你能帮我解决这个问题吗?谢谢。

最佳答案

这是由于你的 ionic 项目路径的长度。所以只需将你的项目移动到非常靠近硬盘盘符的位置,如下所示。

c:\MyIonic2>ionic build android

关于android - 任务 ‘:mergeDebugResources’ ionic 2 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43393892/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com