Uso la pergola per scaricare e gestire tutti i componenti in polimero. Tuttavia, dopo aver aggiunto la cartella "bower_components", Cordova non può più essere completata correttamente.Il polimero con Bower causa la mancata costruzione in 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
Sembra che sia a causa del file .gz in/web-animations-js.
In ogni caso, ci sono anche molti file e cartelle che dovrebbero essere rimossi, come quelle "test" e "demo", incluse quando scarico i componenti con bower.
Come devo risolvere questo problema?
Sì, questo ha funzionato, ma non sono sicuro del perché, sarebbe bello se qualcuno potesse spiegare !! – vinesh