我只在我的build.gradle中添加Firebase並將其設置爲更新。顯示的minsdk 11同步錯誤不能低於14在庫中聲明。我的build.gradle依賴關係如下。 Android監視器中的構建Gradle消息中的一個建議使用工具:overrideLibrary =「com.google.firebase.firebase_core」強制使用。Manifest合併失敗:最小sdkversion 11不能小於庫[com.google.firebase:firebase-core:11.0.4]中聲明的版本14
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:[email protected]'
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.
在此先感謝。
更新Minisdk從11到構建搖籃14發生錯誤在我的XML文件,如下 –
對不起,我聽不懂你在說什麼。 –
非常感謝。更新minsdk從11到14後解決我的問題。再次感謝。 –