我是靠谱客的博主 矮小果汁,最近开发中收集的这篇文章主要介绍Could not GET ‘xxx/maven-metadata.xml‘. Received status code 403 from server: ForbiddenCould not GET ‘xxx/maven-metadata.xml’. Received status code 403 from server: Forbidden,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
Could not GET ‘xxx/maven-metadata.xml’. Received status code 403 from server: Forbidden
1.一般出现这种问题,首先应该排除maven仓地址问题,在根工程的build.gradle文件中增加国内的maven仓地址,比如阿里云或者其他,参考如下:
repositories {
...
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/public/' }
}
2.如果正常run可以成功,但是生成不了正式签名apk,而且执行gradle assembleRelease 查看打印,发现是
Execution failed for task ':app:lintVitalRelease'
类似如下错误:
解决方法就是在主项目build.gradle文件中忽略检查
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
最后
以上就是矮小果汁为你收集整理的Could not GET ‘xxx/maven-metadata.xml‘. Received status code 403 from server: ForbiddenCould not GET ‘xxx/maven-metadata.xml’. Received status code 403 from server: Forbidden的全部内容,希望文章能够帮你解决Could not GET ‘xxx/maven-metadata.xml‘. Received status code 403 from server: ForbiddenCould not GET ‘xxx/maven-metadata.xml’. Received status code 403 from server: Forbidden所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复