【问题标题】:Microsoft Graph API Android 502 Bad GatewayMicrosoft Graph API Android 502 错误网关
【发布时间】:2022-01-19 13:53:34
【问题描述】:

我目前正在关注this link 上的 Microsoft 教程,将 Graph API 集成到我的项目中。我已经将所有建议的编辑添加到我的应用程序 gradle 文件,以及创建 auth_config_single_account.json 文件。用与我的环境相关的所有必要值替换默认值。每当我构建我的项目时,都会出现错误:Could not GET 'https://dl.bintray.com/microsoftazuremobile/SDK/com/microsoft/identity/client/msal/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

有什么想法会导致这种情况发生吗?

【问题讨论】:

  • 所有内容标签都不适用...这是maven 问题,无论它是如何产生的。

标签: android maven microsoft-graph-api msal


【解决方案1】:

这个网址其实是HTTP502:https://dl.bintray.com/microsoftazuremobile/SDK/com/microsoft/identity/client/msal/maven-metadata.xml

因为jcenter() 已关闭,而mavenCentral() 通常是建议的替换。我宁愿希望有一些规范的问答,因为同一个问题会一遍又一遍地出现,只有它可能发生的环境会有所不同。

【讨论】:

  • 请帮助教育我。这个答案的解决方案到底在哪里?
  • 解决方案是将不再存在的存储库 URL 替换为存在的 URL。通常可以在文件/s build.gradle 中找到两次出现的jcenter()(一个用于 Gradle 插件,另一个用于 Java 依赖项)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-01-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-03-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多