idea 自带的gradle > Using insecure protocols with repositories, without explicit opt-in, is unsupported.
时间: 2023-09-28 22:08:06 浏览: 224
Android gradle 资源下载 gradle-6.7.1-all.zip gradle-4.10.1-all.zip
根据提供的引用内容,问题是关于使用不安全协议的Gradle存储库不支持的问题。引用中提供了一种解决方案,可以通过在build.gradle文件中添加`allowInsecureProtocol(true)`来允许使用不安全的协议。此外,引用指出了可以在`flutter-tools/flutter.gradle`或`C:/Users/XXX/.gradle/init.gradle`中找到相关的Gradle配置文件。此外,引用提到了正在使用的Gradle版本是7.5。
综上所述,为了解决使用不安全协议的Gradle存储库的问题,您可以尝试在相应的Gradle配置文件中添加`allowInsecureProtocol(true)`的设置,并确保使用的Gradle版本是7.5。这样可以允许使用不安全的协议。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Gradle报错 Using insecure protocols with repositories, without explicit opt-in, is unsupported.](https://blog.csdn.net/weixin_38687303/article/details/128575212)[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: 33.333333333333336%"]
- *2* [Using insecure protocols with repositories, without explicit opt-in, is unsupported.解决方案](https://blog.csdn.net/qq_36532805/article/details/125118215)[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: 33.333333333333336%"]
- *3* [gradle-7.5-all.zip 快速下载](https://download.csdn.net/download/Jun5008/86246751)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文