安卓 – 聚合物与低音导致建立失败科尔多瓦

前端之家收集整理的这篇文章主要介绍了安卓 – 聚合物与低音导致建立失败科尔多瓦前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用bower来下载和管理所有的聚合物组件.但是,添加“bower_components”文件夹后,Cordova无法再成功构建.
:processDebugResources
      Unable to add 'C:\...\platforms\android\build\intermediates\assets\debug\www\bower_components\web-animations-js\web-animations.min.js.gz': file already in archive (try '-u'?)
ERROR: unable to process assets while packaging 'C:\...\platforms\android\build\intermediates\res\resources-debug.ap_'
ERROR: packaging of 'C:\...\platforms\android\build\intermediates\res\resources-debug.ap_' Failed
:processDebugResources Failed

FAILURE: Build Failed with an exception.

* What went wrong:
Execution Failed for task ':processDebugResources'.
 .......
Error Code:
        1
Output:
              Unable to add 'C:\...\platforms\android\build\intermediates\assets\debug\www\bower_components\web-animations-js\web-animations.min.js.gz': file already in archive (try '-u'?)
        ERROR: unable to process assets while packaging 'C:\...\platforms\android\build\intermediates\res\resources-debug.ap_'
        ERROR: packaging of 'C:\...\platforms\android\build\intermediates\res\resources-debug.ap_' Failed


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

BUILD Failed

Total time: 13.038 secs

这似乎是因为/ web-animations-js中的.gz文件.

无论如何,还有很多应该删除文件文件夹,例如“b”和“demo”文件夹.

该怎么解决这个问题?

解决方法

删除了你提到的.gz文件并让它工作.我不完全清楚完整的解决方案.

猜你在找的Android相关文章