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
8992浏览 • 1回复 待解决
不能访问http://repo.ark.tools.huawei.com
8293浏览 • 1回复 待解决
Gradle怎么实现多productFlavors
6486浏览 • 1回复 待解决
如何使用gradle自动打包?
4592浏览 • 1回复 待解决
huawei webview 组件下载地址
9400浏览 • 2回复 待解决
Could not find a file named "pubspec.yaml"
296浏览 • 1回复 待解决
鸿蒙demo gradle报错怎么解决
9882浏览 • 4回复 待解决
DevEco Studio 无法自动配置gradle
9791浏览 • 2回复 已解决
如何获取HUAWEI DevEco Device Tool?
4848浏览 • 1回复 已解决
build.gradle中的签名问题
7655浏览 • 2回复 待解决
关于DevEco Studio的gradle错误的处理?
17458浏览 • 4回复 已解决
请问HUAWEI DevEco Device Tool会开源吗?
6213浏览 • 1回复 已解决
Gradle的依赖缓存被损坏怎么办?
14095浏览 • 5回复 待解决