【发布时间】:2016-07-24 00:54:42
【问题描述】:
我正在尝试在我的 Android Studio 项目中使用 ShowcaseView 项目,但无法构建项目。
展示链接:https://github.com/amlcurran/ShowcaseView
我已包含以下内容:
在 app/build.gradle-
compile 'com.github.amlcurran.showcaseview:library:5.4.1'
在 build.gradle-
repositories
{
mavenCentral()
}
我收到以下错误:
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 resolve com.github.amlcurran.showcaseview:library:5.4.1.
Required by:
BLEDemo:app:unspecified
> Could not resolve com.github.amlcurran.showcaseview:library:5.4.1.
> Could not get resource 'https://jcenter.bintray.com/com/github/amlcurran/showcaseview/library/5.4.1/library-5.4.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/github/amlcurran/showcaseview/library/5.4.1/library-5.4.1.pom'.
> Connection to https://jcenter.bintray.com refused
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我在网上尝试了几个建议,但找不到解决方案。
我也尝试过导入库并将其包含在 settings.gradle 中,但出现错误。
请帮帮我。
提前谢谢你。
【问题讨论】:
标签: android-studio android-gradle-plugin build.gradle android-library showcaseview