gpt4 book ai didi

android - list 合并失败 : minimum sdkversion 11 cannot be smaller than version 14 declared in library [com. google.firebase :firebase-core:11. 0.4]

转载 作者:行者123 更新时间:2023-11-30 00:25:06 28 4
gpt4 key购买 nike

我只是在我的 build.gradle 中添加 Firebase 并将其设置为更新。同步错误后显示 minsdk 11 不能低于 14 在库中声明。我的 build.gradle 依赖项如下。 Android Monitor 中的 Build Gradle 消息中显示的建议使用 tool:overrideLibrary="com.google.firebase.firebase_core"强制使用。

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.indiauthoritymarketing.instasave"
minSdkVersion 11
targetSdkVersion 23
versionCode 2
versionName "InstaSve 2.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}


dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.android.gms:play-services-ads:11.0.4'
compile 'com.mani:ThinDownloadManager:1.2.2'
compile 'net.rdrei.android.dirchooser:library:3.2@aar'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-ads:11.0.4'
compile 'com.google.firebase:firebase-appindexing:11.0.4'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-annotations:25.3.1'
}
apply plugin: 'com.google.gms.google-services'

构建依赖如下:--

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'

}
}

allprojects {
repositories {
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


Where I missing.

提前致谢。

最佳答案

在 Android 上,Firebase 作为 Play 服务的一部分进行分发。 Play 服务现在需要最低 API 级别 14 才能使用它。因此,您必须至少以 API 级别 14 为目标。

https://android-developers.googleblog.com/2016/11/google-play-services-and-firebase-for-android-will-support-api-level-14-at-minimum.html

关于android - list 合并失败 : minimum sdkversion 11 cannot be smaller than version 14 declared in library [com. google.firebase :firebase-core:11. 0.4],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45538918/

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