Felix Becker Felix Becker - 7 days ago 6
Java Question

I get "':mergeDebugAssets"-Error when compiling my App with Ionic

Hello Stackoverflow Team,

when i run the following command:

ionic build android


I get the following:

Execution failed for task ':mergeDebugAssets'.



[www/node_modules/semver/semver.browser.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/semver/semver.browser.js [www/node_modules/semver/semver.browser.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/semver/semver.browser.js.gz: Error: Duplicate resources
[www/node_modules/bower/lib/node_modules/semver/semver.browser.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/bower/lib/node_modules/semver/semver.browser.js [www/node_modules/bower/lib/node_modules/semver/semver.browser.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/bower/lib/node_modules/semver/semver.browser.js.gz: Error: Duplicate resources
[www/node_modules/semver/semver.min.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/semver/semver.min.js.gz [www/node_modules/semver/semver.min.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/semver/semver.min.js: Error: Duplicate resources
[www/node_modules/bower/lib/node_modules/semver/semver.min.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/bower/lib/node_modules/semver/semver.min.js.gz [www/node_modules/bower/lib/node_modules/semver/semver.min.js] /home/felix/Entwicklungen/TryMe/platforms/android/assets/www/node_modules/bower/lib/node_modules/semver/semver.min.js: Error: Duplicate resources


When I just compile a blank app, everything works fine. Can someone tell me whats happened here?
I also tried to remove platform android and add it again but nothing happened.
Thank you!

Answer

The solution was to delete the semver directory.

Comments