Ionic build android error(无法解析配置的所有依赖项 [英] Ionic build android error(Could not resolve all dependencies for configuration
问题描述
一切运行正常,现在此构建错误开始突然出现:-
Everything was running fine and now this build error has started showing up suddenly:-
失败:构建失败,并出现异常。
FAILURE: Build failed with an exception.
-
出了什么问题:配置根项目 android时出现问题。
What went wrong: A problem occurred configuring root project 'android'.
无法解析配置':classpath'的所有依赖项。
无法下载工件'bcprov-jdk15on.jar(org.bouncycastle:bcprov-jdk15on:1.48)'
无法下载资源' https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.48/bcprov- jdk15on-1.48.jar 。
连接重置
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
尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
构建失败
总时间:2分钟12.557秒
Total time: 2 mins 12.557 secs
请帮助我进行构建。
推荐答案
gradle存在问题。
运行命令
There was a problem with gradle. Running command
gradle init
gradle init
解决了以上错误。
这篇关于Ionic build android error(无法解析配置的所有依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!