gradle Could not resolve com.huawei.ohos:decctest:1.0.0.7

codelabs提供的DistributedMail编译报错。找不到decctest包

A problem occurred configuring root project 'DistributedMail'.

> Could not resolve all artifacts for configuration ':classpath'.

   > Could not resolve com.huawei.ohos:decctest:1.0.0.7.

     Required by:

         project :

      > Could not resolve com.huawei.ohos:decctest:1.0.0.7.

         > Could not get resource 'https://repo.huaweicloud.com/repository/maven/com/huawei/ohos/decctest/1.0.0.7/decctest-1.0.0.7.pom'.

            > Could not GET 'https://repo.huaweicloud.com/repository/maven/com/huawei/ohos/decctest/1.0.0.7/decctest-1.0.0.7.pom'. Received status code 400 from server: Bad Request

      > Could not resolve com.huawei.ohos:decctest:1.0.0.7.

         > Could not get resource 'https://developer.huawei.com/repo/com/huawei/ohos/decctest/1.0.0.7/decctest-1.0.0.7.pom'.

            > Could not GET 'https://developer.huawei.com/repo/com/huawei/ohos/decctest/1.0.0.7/decctest-1.0.0.7.pom'. Received status code 400 from server: Bad Request

      > Could not resolve com.huawei.ohos:decctest:1.0.0.7.

         > Could not get resource 'https://jcenter.bintray.com/com/huawei/ohos/decctest/1.0.0.7/decctest-1.0.0.7.pom'.

            > Could not GET 'https://jcenter.bintray.com/com/huawei/ohos/decctest/1.0.0.7/decctest-1.0.0.7.pom'. Received status code 400 from server: Bad Request

鸿蒙
HarmonyOS
华为
2021-11-26 11:08:59
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
Noedd

C:\Users\Administrator\.gradle\gradle.properties
删除以下配置的代理信息:
systemProp.http.proxyHost=mirrors.neusoft.edu.cn

systemProp.https.proxyHost=mirrors.neusoft.edu.cn

systemProp.https.proxyPort=80

systemProp.http.proxyPort=80

分享
微博
QQ
微信
回复
2021-11-26 14:47:36
相关问题
missing essential plugin com.huawei.harmony
4493浏览 • 1回复 待解决
不能访问http://repo.ark.tools.huawei.com
3923浏览 • 1回复 待解决
Gradle怎么实现多productFlavors
2294浏览 • 1回复 待解决
关于DevEco Studio的gradle错误的处理?
10329浏览 • 4回复 已解决
Gradle的依赖缓存被损坏怎么办?
6670浏览 • 5回复 待解决
如何使用gradle自动打包?
255浏览 • 1回复 待解决
导入ohos相关模块都找不到
1300浏览 • 1回复 待解决
如何获取HUAWEI DevEco Device Tool?
1053浏览 • 1回复 已解决
鸿蒙demo gradle报错怎么解决
5654浏览 • 4回复 待解决
DevEco Studio 无法自动配置gradle
4687浏览 • 2回复 已解决
ohos:remote的问题有知道的吗?
942浏览 • 1回复 待解决
build.gradle中的签名问题
3393浏览 • 2回复 待解决
ohos.net.socket (Socket连接)链接不上
443浏览 • 1回复 待解决
Hi3516按照官方文档无法进入ohos shell
2944浏览 • 3回复 待解决
请问HUAWEI DevEco Device Tool会开源吗?
1673浏览 • 1回复 已解决