Android jcenter bad gateway 502(Unable to load Maven meta-data from https://jcenter.bintray.com)

2023-05-16

今天在Android studio运行项目的时候报了如下错误,项目都编译不过了,顿时慌。。。

这里附上gradle额下载地址(gradle)

Error:Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.tencent.bugly:nativecrashreport:latest.release.
  Required by:
      project :app
   > Could not resolve com.tencent.bugly:nativecrashreport:latest.release.
      > Failed to list versions for com.tencent.bugly:nativecrashreport.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/tencent/bugly/nativecrashreport/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/com/tencent/bugly/nativecrashreport/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
   > Could not resolve com.tencent.bugly:nativecrashreport:latest.release.
      > Failed to list versions for com.tencent.bugly:nativecrashreport.
         > Unable to load Maven meta-data from https://dl.bintray.com/jetbrains/anko/com/tencent/bugly/nativecrashreport/maven-metadata.xml.
            > Could not get resource 'https://dl.bintray.com/jetbrains/anko/com/tencent/bugly/nativecrashreport/maven-metadata.xml'.
               > Could not GET 'https://dl.bintray.com/jetbrains/anko/com/tencent/bugly/nativecrashreport/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

直接访问错误信息中的地址,

 直接访问错误信息中的地址,502错误,如下

咨询了一下万能的群友(好多群都有这个问题),得到如下解决方案,照做之后就ok:

 注释掉jcenter,替换成maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }

allprojects {
    repositories {
        google()
//        jcenter()
//        maven {url 'https://dl.bintray.com/jetbrains/anko'} 
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }//解决以下下问题(jcenter bad gateway 502)

//        Error:Could not resolve all files for configuration ':app:debugCompileClasspath'.
//                > Could not resolve com.tencent.bugly:nativecrashreport:latest.release.
//                Required by:
//                project :app
//        > Could not resolve com.tencent.bugly:nativecrashreport:latest.release.
//                > Failed to list versions for com.tencent.bugly:nativecrashreport.
//                > Unable to load Maven meta-data from https://jcenter.bintray.com/com/tencent/bugly/nativecrashreport/maven-metadata.xml.
//        > Could not HEAD 'https://jcenter.bintray.com/com/tencent/bugly/nativecrashreport/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
//        > Could not resolve com.tencent.bugly:nativecrashreport:latest.release.
//                > Failed to list versions for com.tencent.bugly:nativecrashreport.
//                > Unable to load Maven meta-data from https://dl.bintray.com/jetbrains/anko/com/tencent/bugly/nativecrashreport/maven-metadata.xml.
//        > Could not get resource 'https://dl.bintray.com/jetbrains/anko/com/tencent/bugly/nativecrashreport/maven-metadata.xml'.
//        > Could not GET 'https://dl.bintray.com/jetbrains/anko/com/tencent/bugly/nativecrashreport/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
    }

感谢万能的群友!希望你遇到这种情况的时候能快速找到解决方案!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android jcenter bad gateway 502(Unable to load Maven meta-data from https://jcenter.bintray.com) 的相关文章

随机推荐

  • C++ ZeroMQ 发布订阅模式例子跟注意事项

    发布订阅模式 接收端 xff1a void context void subscriber 第一步 xff1a zmq ctx new 创建context对象 context 61 zmq ctx new 第二步 xff1a 创建socke
  • 目标检测算法——anchor free

    一 anchor free 概述 1 先要知道anchor 是什么 xff08 这需要先了解二阶段如faster rcnn xff0c 一阶检测器如YOLO V2以后或SSD等 xff09 在过去 xff0c 目标检测通常被建模为对候选框的
  • 度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)

    概述 首先 xff0c 我们把loss归为两类 xff1a 一类是本篇讲述的基于softmax的 xff0c 一类是基于pair对的 xff08 如对比损失 三元损失等 xff09 基于pair对的 xff0c 参考我的另一篇博客 xff1
  • Oauth2知识总结

    官网 xff1a OAuth Community Site OAuth是一个关于授权 xff08 authorization xff09 的开放网络工业标准 xff0c 允许用户授权第三方应用访问用户存储在其它应用上的信息 xff0c 而不
  • 重构技巧之策略模式优化业务代码

    重构技巧之策略模式优化业务代码 策略模式对业务代码进行重构背景分析 在日常的开发过程中 xff0c 我们肯定会遇到很多if else或者switch case的业务代码 xff0c 作为维护这类代码的开发者来说 xff0c 分支太长 xff
  • 64位Ubuntu使用john破解密码的No password hashes loaded

    最近研究了一下Linux的密码破解 xff0c 因为正好在学习computer security 计算机信息安全 这门课 我在使用 john the ripper 的时候遇到了一个问题 No password hashes loaded 今
  • Java常量池详解之抓狂的面试题

    今天My partner问我一个让他头疼的Java question xff0c 求输出结果 xff1a 64 author DreamSea 2011 11 19 public class IntegerTest public stati
  • PC软件问题定位工具-windbg

    windbg工具使用 windbg是微软的工具 xff0c 可以从百度或微软官网获取 工具支持 xff1a 分析dmp文件 定位CPU 内存 崩溃等异常问题 代替VS调试C 43 43 程序 这里主要整理了收集或分析dmp文件的相关命令 x
  • Ubuntu18.04使用RealVNC进行远程桌面连接

    可以直接查看最新的 xff1a RealVNC Server Ubuntu 20 04 无显示器连接 虚拟显示器 捉不住的鼬鼠的足迹 CSDN博客 使用Linux服务器 xff0c 在一般情况下是不太用桌面环境的 不过现在我想着开发用Lin
  • CMakeLists.txt 详解

    目录 CMakeLists txt用例详解 xff08 WDS中的用例 xff09 CMakeLists txt作用 生成对象库OBJECT实例 xff08 wds libwds common CMakeLists txt xff09 生成
  • ubuntu16.10安装numpy, scipy, matplotlib

    在Python3 x中安装numpy sudo apt get span class hljs keyword install span python3 pip pip3 span class hljs keyword install sp
  • Linux进程状态分析

    最近在看APUE过程中 xff0c 遇到了一个有关于进程的 僵死进程 的状态 既然遇到了进程状态的问题 xff0c 索性就查了查 Linux内核设计与实现 xff0c 里面给出了5种状态 xff0c 分别是 TASK RUNNING TAS
  • IDEA自动生成Javadoc代码注释

    在日常写代码时往往不会注重注释的格式 规范等问题 xff0c 可能注释都不会写 xff0c 但是一旦代码完成后要交付他人 xff0c 就需要考虑注释的问题了 xff0c 因为重要函数 方法的注释往往对整个代码的阅读起着十分重要的作用 xff
  • VNC连接远程服务器

    记录探索之路 由于跑深度学习算法 xff0c 需要连接服务器 xff0c 以前都是利用XShell连接 xff0c 也比较好用 xff0c 但是没有界面 VNC可以展示界面 xff0c 更加清晰 xff0c 以下是探索的方法 1 下载软件
  • Linux文件权限管理命令学习

    你必须非常努力 xff0c 才能看起来毫不费力 xff01 微信搜索公众号 漫漫Coding路 xff0c 一起From Zero To Hero 前言 本篇文章主要讨论Linux中的文件权限管理命令 xff0c 包括更改文件权限 文件所有
  • App移动端测试-Fiddler工作场景总结

    文章目录 一 测试思路1 1App测试内容1 2APP功能测试思路 二 Fiddler测试环境配置2 1Fiddler PC配置2 2模拟器端配置2 3模拟器端代理设置 三 Fiddler测试工作应用场景3 1 Fiddler抓包辅助定位B
  • 当Linux配置zh_CN.UTF-8 ,中文还是显示乱码解决办法

    文章目录 一 出现问题的可能原因1 服务器没有安装zh CN UTF 8 字符集2 远程登录软件字符设置 这篇博客主要说明出现问题的原因和解决思路 一 出现问题的可能原因 1 服务器没有安装zh CN UTF 8 字符集 安装对应的软件包就
  • tar (child): lbzip2: Cannot exec: No such file or directory 解决方法

    tar child lbzip2 Cannot exec No such file or directory 解决方法 今天用tar命令解压文件的时候出错了 xff0c 信息如下 xff1a tar child lbzip2 Cannot
  • openstack newton Linuxbridge改ovs并配置dvr

    这几天一直在搞dvr xff0c 现在终于搞好了 网上的资料比较杂乱 xff0c 期间也一直在各种尝试 xff0c 步骤也很繁琐而且混乱 xff0c 坑比较多 xff0c 现在整理一下 官方安装文档从前几个版本开始在 配置网络的时候就由ov
  • Android jcenter bad gateway 502(Unable to load Maven meta-data from https://jcenter.bintray.com)

    今天在Android studio运行项目的时候报了如下错误 xff0c 项目都编译不过了 xff0c 顿时慌 这里附上gradle额下载地址 gradle Error Could not resolve all files for con