gpt4 book ai didi

android - jitpack.io - 无法解决

转载 作者:行者123 更新时间:2023-11-29 20:03:14 27 4
gpt4 key购买 nike

我正在尝试导入 library使用 jitpack.io .这是我的顶级 build.gradle:

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" }
}
}

这是我的 app/build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "com.domain.app"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.0'
compile files('libs/Parse-1.9.1/Parse-1.9.1.jar')
compile files('libs/Parse-1.9.1/bolts-android-1.2.0.jar')
compile 'com.github.deano2390:MaterialShowcaseView:1.0.6'

}

我不断收到:Error:(27, 13) Failed to resolve: com.github.deano2390:MaterialShowcaseView:1.0.6 没有任何附加信息。

我还按照图书馆作者的建议尝试了 sffuix:

compile 'com.github.deano2390:MaterialShowcaseView:1.0.6@aar'

最佳答案

在 app/build.gradle 中添加你的仓库,如下所示

apply plugin: 'com.android.application'
repositories {
maven {
url "https://jitpack.io"
}

}
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "com.domain.app"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.0'
compile files('libs/Parse-1.9.1/Parse-1.9.1.jar')
compile files('libs/Parse-1.9.1/bolts-android-1.2.0.jar')
compile 'com.github.deano2390:MaterialShowcaseView:1.0.6'

}

关于android - jitpack.io - 无法解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35983298/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com