在 android studio 中创建新项目时出现此错误,我检查了库并有 hamcrest-core-1.3.jar 文件。请帮助我
Error:A problem occurred configuring project ':app'.
> Could not download hamcrest-core.jar (org.hamcrest:hamcrest-core:1.3)
> Could not get resource 'https://jcenter.bintray.com/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar'.
> Could not GET 'https://jcenter.bintray.com/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar'.
> jcenter.bintray.com
最佳答案
错误不是因为 hamcrest-core-1.3.jar 文件。似乎 gradle 无法连接到 jcenter 并下载 junit.jar 。因此,请确保您的互联网连接并重建您的项目。通常 gradle 会下载所有必需的 jars。如果它不尝试更新您的构建工具。
关于android-studio - 如何解决在android studio中创建新项目时出现hamcrest jar文件错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33153711/