Could not resolve com.android.tools.build.gradle:3.0.1

本文详细介绍了在Android Studio中遇到的Gradle版本无法解析的问题及其解决方案。通过调整代理设置和清理本地缓存,成功解决了Couldnotresolvecom.android.tools.build.gradle:3.0.1的错误。

Could not resolve com.android.tools.build.gradle:3.0.1

android studio 代理问题
android studio中代理设置 file-ssetting-proxy
删除 C:\Users\dinglt.gradle文件下gradle.properties 中的代理设置

Warning: Flutter support for your project&#39;s Android Gradle Plugin version (Android Gradle Plugin version 8.1.0) will soon be dropped. Please upgrade your Android Gradle Plugin version to a version of at least Android Gradle Plugin version 8.3.0 soon. Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check. Potential fix: Your project&#39;s AGP version is typically defined in the plugins block of the `settings.gradle` file (F:\projects\flutter\hbw_edu_app\android/settings.gradle), by a plugin with the id of com.android.application. If you don&#39;t see a plugins block, your project was likely created with an older template version. In this case it is most likely defined in the top-level build.gradle file (F:\projects\flutter\hbw_edu_app\android/build.gradle) by the following line in the dependencies block of the buildscript: "classpath &#39;com.android.tools.build:gradle:<version>&#39;". 2 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task &#39;:app:checkDebugAarMetadata&#39;. > Could not resolve all files for configuration &#39;:app:debugRuntimeClasspath&#39;. > Failed to transform compressor-3.0.1.aar (id.zelory:compressor:3.0.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Could not download compressor-3.0.1.aar (id.zelory:compressor:3.0.1) > Could not get resource &#39;https://repo.maven.apache.org/maven2/id/zelory/compressor/3.0.1/compressor-3.0.1.aar&#39;. > Could not HEAD &#39;https://repo.maven.apache.org/maven2/id/zelory/compressor/3.0.1/compressor-3.0.1.aar&#39;. > Got socket exception during request. It might be caused by SSL misconfiguration > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: Connection refused: getsockopt > Failed to transform fijkplayer-full-0.7.16.aar (com.befovy.fijkplayer:fijk
08-24
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值