cocos android打包 错误总结
1,总是下载失败,connect time out
可以使用腾讯的镜像,Index of /gradle/
https://mirrors.cloud.tencent.com/gradle/
可直接改成如下图的方式:
2,Could not find com.android.tools.build:gradle:4.2.2.
Could not find com.android.tools.build:gradle:4.2.2. 这个版本和gradle-wrapper.properties 中设置的
distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-7.2-bin.zip
3,A problem occurred configuring root project 'proj.android-studio'.
> Could not resolve all dependencies for configuration ':classpath'.
A problem occurred configuring root project 'proj.android-studio'.
> Could not resolve all dependencies for configuration ':classpath'.> Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.aliyun.com/nexus/content/repositories/google)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.3/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
不再支持 7.x 以后不在支持 http 不安全协议 改成 https