Я пытаюсь добавить PinnedSectionListView из арсенала android.вопрос добавить репозиторий из арсенала android
способ добавить сказать: Добавить конкретное хранилище в файл сборки:
repositories {
maven {
url "https://jitpack.io"
}
}
Добавьте зависимость в файле сборки (не забудьте указать правильный спецификатор, как правило, 'AAR'):
dependencies {
compile 'com.github.beworker:pinned-section-listview:v1.0'
}
, так что я сделал это (build.gradle (Project)):
buildscript {
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.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"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle (модуль): применять плагин: 'com.android.application'
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.jonathandg.listviewsections"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.beworker:pinned-section-listview:[email protected]'
//compile 'com.beworker:pinned-section-listview:v1.0'
}
то студия сообщение андроид
Error:(25, 13) Failed to resolve: com.beworker:pinned-section-listview:v1.0
repositoty в: https://android-arsenal.com/details/1/264