我正在尝试将PrismView lib集成到我的项目中。我在项目build.gradle中包含了jitpack.io,下面是代码片段。
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
并在项目模块中包括依赖项,如下所示:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.github.ppamorim:PrismView:0.3'
}
但是在同步时会出现以下错误:
Error:(24, 13) Failed to resolve: com.github.ppamorim:PrismView:0.3
解决这个问题的任何线索都将非常有帮助。
最佳答案
使用:
dependencies {
compile 'com.github.ppamorim:prismview:0.3'
}
应该只是一个简单的错字。