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
7854浏览 • 1回复 待解决
不能访问http://repo.ark.tools.huawei.com
7164浏览 • 1回复 待解决
如何使用gradle自动打包?
3451浏览 • 1回复 待解决
huawei webview 组件下载地址
7991浏览 • 2回复 待解决
DevEco Studio 无法自动配置gradle
8822浏览 • 2回复 已解决
鸿蒙demo gradle报错怎么解决
8977浏览 • 4回复 待解决
Gradle怎么实现多productFlavors
5492浏览 • 1回复 待解决
build.gradle中的签名问题
6711浏览 • 2回复 待解决
如何获取HUAWEI DevEco Device Tool?
3911浏览 • 1回复 已解决
请问HUAWEI DevEco Device Tool会开源吗?
5219浏览 • 1回复 已解决
HUAWEI Mate30EPro今晚能升级吗?
4919浏览 • 1回复 待解决
关于DevEco Studio的gradle错误的处理?
16356浏览 • 4回复 已解决