错误信息
Could not resolve all dependencies for configuration ':MPChartLib:debugRuntimeClasspath'.
Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven3(http://oss.jfrog.org/artifactory/oss-snapshot-local)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
解决方案
在MPChartLib的build.gradle中添加
repositories {
maven {
allowInsecureProtocol = true
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
}
}