我正在使用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”文件夹.
该怎么解决这个问题?