Android 开发问题:TransformException: Failed to transform gradle-8.14.2-src.zip to match
distributionBaseGRADLE_USER_HOME distributionPathwrapper/dists distributionUrlhttps\://mirrors.aliyun.com/macports/distfiles/gradle/gradle-8.14.2-bin.zip zipStoreBaseGRADLE_USER_HOME zipStorePathwrapper/dists在 Android 开发中distributionUrl 配置的 Gradle 和下载的 Gradle 不一致并且出现如下错误信息Caused by: org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform gradle-8.14.2-src.zip (gradle:gradle:8.14.2) to match attributes {artifactTypesrc-directory, org.gradle.statusintegration}.Caused by: org.gradle.api.resources.ResourceException: Could not get resource https://services.gradle.org/distributions/gradle-8.14.2-src.zip.问题原因distributionUrl 配置的是-bin.zip来自阿里云镜像但构建过程中某个插件或依赖硬编码要求下载 -src.zip从官方源services.gradle.org处理策略改为使用-all.zip阿里云镜像distributionUrlhttps\://mirrors.aliyun.com/macports/distfiles/gradle/gradle-8.14.2-all.zip