Today, I introduced the path_provider in the new project.
* What went wrong: A problem occurred configuring project ':path_provider'. > Could not resolve all artifacts for configuration ': path_provider: classpath' > Could not download guava. Jar (com. Google. Guava: guava: 26.0 jre) > Could not get the resource 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'. > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not download kotlin-reflect.jar (org. Jetbrains. Kotlin: kotlin - reflect: 1.3.11) > Could not get the resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.11/kotlin-reflect-1.3.11.jar'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.11/kotlin-reflect-1.3.11.jar'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetCopy the code
Gradle does not update new dependencies when new packages are introduced. I found some methods on the Internet, including changing environment variables, changing YAML code, and deleting some packages. It didn’t work, and then I came across this:
CD Android gradle Initial // Run several timesCopy the code
The runtime prompts me that some resources in Gradle are already init. I should use gradle Init to run the project twice. Run the project again, smoothly ✌️