gpt4 book ai didi

android - 在 build.gradle 中找不到远程 jar

转载 作者:行者123 更新时间:2023-12-03 04:49:06 25 4
gpt4 key购买 nike

在我的应用程序(MyApp)中,我使用另一个项目(Appox)作为库,在这个(Appox)项目中,我想从他们的存储库中包含 bugsense-jar。现在在 Appox 的 build.gradle 中,我以这种方式包含它

apply plugin: 'android-library'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}

repositories {
mavenCentral()
maven { url 'http://www.bugsense.com/gradle/' }
}

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.bugsense.trace:bugsense:3.6'
}

android {
compileSdkVersion 19
buildToolsVersion "19.1.0"

sourceSets {
main {
//....
}
}
}

但是在编译时我总是收到错误 Failed to find com.bugsense.trace:bugsense:3.6我是否以正确的方式包含它?该文件是否可能甚至不存在于他们的仓库中?

最佳答案

为了更新这一点,Bugsense 已重命名为 Mint,因此对 bugsense.com 存储库的引用已被破坏。因此,使用以下内容更新您的 Gradle 文件:

apply plugin: 'android'

repositories {
maven { url "https://mint.splunk.com/gradle/" }
}

dependencies {
compile "com.splunk.mint:mint:4.3.0"
}

发件人: http://docs.splunk.com/Documentation/MintAndroidSDK/latest/DevGuide/Requirementsandinstallation

如果您要更新旧代码,您还需要更新您的导入并重命名 BugSenseHandler 的任何实例。在您的代码中添加到 Mint . ( http://docs.splunk.com/Documentation/MintAndroidSDK/latest/DevGuide/AddSplunkMINTtoyourproject)

关于android - 在 build.gradle 中找不到远程 jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26575154/

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