我正在使用支持库版本27.0.0,但是我遇到了一个奇怪的构建错误。我使用的支持库是27.0.0,但它仍然为27.0.99抛出错误。
我尝试过清除项目,在Android Studio中无效化缓存,重新启动我的Android Studio,但都没有帮助。
如果我将我的
我已经添加了来自谷歌的支持库的maven支持。
这是我的默认
我尝试过清除项目,在Android Studio中无效化缓存,重新启动我的Android Studio,但都没有帮助。
如果我将我的
buildtoolversion
和支持库更新到27.0.2,但它仍然为27.0.99
抛出错误。Error:Could not find com.android.support:customtabs:27.0.99.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar
https://jcenter.bintray.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom
https://jcenter.bintray.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar
https://repo1.maven.org/maven2/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom
https://repo1.maven.org/maven2/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar
https://maven.fabric.io/public/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom
https://maven.fabric.io/public/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar
https://jitpack.io/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom
https://jitpack.io/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar
https://maven.google.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom
https://maven.google.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar
Required by:
project :app
Please install the Android Support Repository from the Android SDK Manager.
<a href="openAndroidSdkManager">Open Android SDK Manager</a>
我已经添加了来自谷歌的支持库的maven支持。
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
这是我的默认
gradle
配置。compileSdkVersion 27
buildToolsVersion "27.0.0"
defaultConfig {
vectorDrawables.useSupportLibrary = true
applicationId "com.pro.test"
minSdkVersion 19
targetSdkVersion 27
versionCode 18
versionName "1.17"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.config
multiDexEnabled true
}
我使用的支持库是
compile 'com.android.support:appcompat-v7:27.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:27.0.0'
compile 'com.android.support:support-v4:27.0.0'
compile 'com.android.support:customtabs:27.0.0'
compile 'com.android.support:cardview-v7:27.0.0'
./gradlew app:dependencies
查看它来自哪里,并找出包含此库版本的依赖项。 - Tomas Ivan