android - 无法获取“https://google.bintray.com/flexbox-layout/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom”
问题描述
我正在使用 CometChat 和 ChatKit 构建聊天应用程序。当我在我的 Android 手机中执行该应用程序时,会出现错误消息:“ Could not GET 'https://google.bintray.com/flexbox-layout/com/google/android/flexbox/1.0.0/flexbox-1.0. 0.pom'. 从服务器收到状态码 403: Forbidden Disable Gradle 'offline mode' and sync project "
下面是我的 Build Gradle 项目代码:
buildscript {
repositories {
google()
mavenCentral()
mavenLocal()
maven { url "https://google.bintray.com/flexbox-layout" }
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
classpath 'com.google.gms:google-services:4.3.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
//jCenter()
maven {
url "https://dl.cloudsmith.io/public/cometchat/cometchat-pro-android/maven/"
}
maven { url 'https://jitpack.io' }
// Warning: this repository is going to shut down soon
maven { url "https://google.bintray.com/flexbox-layout" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
解决方案
如此处所述,如您所见,bintray 已关闭。您应该搜索部署了 flexbox-layout 的 repo。
推荐阅读
- json - Flutter 家谱创建小部件
- r - 多个(动态指定)列上的“if_else”条件
- arrays - 使用带有指针的数组实现堆栈的 C 中的分段错误
- javascript - 无论查询字符串发生什么变化,都返回上一页
- java - 将工件部署到 Nexus 时找不到工件
- php - 90天后SQL替换表中的值
- cytoscape - RWRMTN 应用程序在 Cytoscape 中加载数据集需要哪些要求?
- casl - 使用 Ivy 和 CASL 构建问题
- awk - 如何在不匹配特定字符串的第一次和最后一次出现之前和之后的所有行的同时保留一行的内容?
- airflow - 气流 + OpenLDAP