运维系列&安卓系列【仅供参考】:最新 android studio 阿里 maven 仓库地址 Using insecure protocols with repositories, without

436 篇文章 ¥129.90 ¥299.90

最新 android studio 阿里 maven 仓库地址 Using insecure protocols with repositories, without explicit op




最新 android studio 阿里 maven 仓库地址 Using insecure protocols with repositories, without explicit op

因为一直拉不到想要的包 , 添加阿里的仓库后 提示错误:

Using insecure protocols with repositories, without explicit opt-in,

查资料发现好像是协议更新了 .阿里也更新了新地址

新地址:

  repositories {
   
   
        maven 
"Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven' to redirect to a secure protocol (like HTTPS) or allow insecure protocols." 这个错误提示是因为在使用Maven仓库时采用了不安全的协议,需要将其转换为安全的协议(如HTTPS)或允许使用不安全的协议。 解决方法有两种: 1. 添加关键字allowInsecureProtocol并设置为true: ``` maven { allowInsecureProtocol = true url 'xxx' } ``` 这样可以允许使用不安全的协议。 2. 将Maven仓库地址URL由HTTP改为HTTPS: ``` maven { url 'https://xxx' } ``` 通过将协议由HTTP改为HTTPS,可以使用安全的协议连接Maven仓库。 你可以根据具体情况选择其中一种解决方法来修复这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven...](https://blog.youkuaiyun.com/qq_22255311/article/details/122600752)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Android Studio报错Using insecure protocols with repositories](https://blog.youkuaiyun.com/u012069313/article/details/124941578)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

坦笑&&life

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值