Ionic build android error(Could not resolve all dependencies for configuration

99封情书 提交于 2020-01-06 19:51:31

问题


Everything was running fine and now this build error has started showing up suddenly:-

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

    Could not resolve all dependencies for configuration ':classpath'. Could not download artifact 'bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.48)' Failed to download resource 'https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar'. Connection reset

  • 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: 2 mins 12.557 secs

Kindly help me in building this.


回答1:


There was a problem with gradle. Running command

gradle init

solved the above error.



来源:https://stackoverflow.com/questions/37989694/ionic-build-android-errorcould-not-resolve-all-dependencies-for-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!