我正在嘗試將PrismView lib集成到我的項目中。我在項目build.gradle中包含jitpack.io,下面是代碼片段。無法解決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
任何鉛來解決,這將是很有益的。
謝謝,它的工作原理。但我仍然無法使用它的功能:(任何幫助??? – Krishnakant