【问题标题】:Execution failed for task ‘:mergeDebugResources’ ionic 2任务“:mergeDebugResources”离子2执行失败
【发布时间】:2017-04-13 13:40:50
【问题描述】:

我正在使用 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 中的所有解决方案,但所有解决方案都不适用于我。 你能帮我解决这个问题吗? 谢谢。

【问题讨论】:

    标签: android cordova ionic-framework ionic2


    【解决方案1】:

    这是由于您的 ionic 项目的路径长度所致。因此,只需将您的项目移动到非常靠近硬盘驱动器号的位置,如下所示。

    c:\MyIonic2>ionic build android
    

    【讨论】:

    • 这是我的荣幸 :)
    【解决方案2】:

    供未来参考。我有完全相同的问题。就我而言,资源已损坏/损坏。只需删除它们并从备份中添加或使用 Ionic Forum 中提到的离子资源 gen

    【讨论】:

    • 这是我的唯一解决方案
    • 太棒了!我的问题是“离子科尔多瓦资源”,你必须让一代完成,我的案例资源被破坏了。谢谢。
    • 哇...我回来寻找这个解决方案。
    猜你喜欢
    • 1970-01-01
    • 2020-04-29
    • 2019-04-14
    • 2016-04-18
    • 2019-08-25
    • 2019-11-05
    • 2018-08-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多