根据此项目的自述文件https://github.com/sky-map-team/stardroid,我正在使用gradle构建一个Android项目,但gradle无法从存储库下载依赖项:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:support-annotations:23.1.0.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-annotations/23.1.0/support-annotations-23.1.0.pom
https://jcenter.bintray.com/com/android/support/support-annotations/23.1.0/support-annotations-23.1.0.jar
Required by:
stardroid:app:unspecified
...
jcenter上似乎没有这样的文件(com.android.support:support-annotations:23.1.0),请参阅https://jcenter.bintray.com/com/android/。
在mavenCentral上也找不到此依赖关系,请参阅http://search.maven.org/#search|ga|1|support-annotations
如何为gradle设置存储库以下载此类依赖项?
分辨
在 Android SDK Manager 中下载 Android支持存储库和 Google存储库后构建成功。