1
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':CordovaLib'.
Could not resolve all artifacts for configuration ':CordovaLib:classpath'.

ionic cordova build/run android not working. Always showing this error:

this error.

It seems no error on project because it worked when copied to another system.

I already tried this and this but it is not working.

Akash
  • 46
  • 6
  • Try with this command: ```ionic build``` – Shinichi Kudo Dec 22 '20 at 14:44
  • I need to build android apk.. – Akash Dec 23 '20 at 06:12
  • Did you try these solutions here : https://stackoverflow.com/questions/25994163/could-not-resolve-all-dependencies-for-configuration-classpath#:~:text=Go%20to%20File%20%2D%3E%20Invalidate%20Caches,missing%20files%20for%20the%20project – Shinichi Kudo Dec 23 '20 at 10:16
  • tried..but no change – Akash Dec 23 '20 at 10:55
  • Try deleting your ```android``` folder, and generate it again. If not working, Try using Capacitor, ```ionic build``` then ```npx cap add android```, ```npx cap copy android```, ```npx cap open android``` (remove android folder first) – Shinichi Kudo Dec 23 '20 at 13:31

0 Answers0