gpt4 book ai didi

java - 无法解析 no.nordicsemi.android.support.v18 :scanner

转载 作者:太空狗 更新时间:2023-10-29 14:53:17 25 4
gpt4 key购买 nike

我想使用no.nordicsemi.android.support.v18scanner,但是在构建项目的时候出现了这样的错误:

Failed to resolve no.nordicsemi.android.support.v18:scanner

这是我在应用模块中的build.gradle:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.3.0'
compile 'com.google.android.gms:play-services-wearable:7.8.0'
compile 'no.nordicsemi.android.support.v18:scanner:0.1.1'
compile project(':common')
}

还有我的项目中的build.gradle:

buildscript {
repositories {
jcenter()
}
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 存储库中,但我无法将它同步到本地,而其他像 com.google.android.support:wearable:1.3.0 做得很好,谁能告诉我为什么会出现这个错误,我该如何解决,谢谢。

最佳答案

您应用的 minSdkVersion 可能低于 18。Android-Scanner-Compat-Library (no.nordicsemi.android.support.v18:scanner:0.1.1') 的最低 SDK 版本为 18,因此您只能在minSdkVersion 为 18+ 的项目

关于java - 无法解析 no.nordicsemi.android.support.v18 :scanner,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33601997/

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