第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

如何正確地將 MinSDKVersion 從 15 更改為 16 for firebase

如何正確地將 MinSDKVersion 從 15 更改為 16 for firebase

德瑪西亞99 2023-02-23 17:31:22
我原來使用的是minSDKVersion 15,現(xiàn)在因?yàn)樾枰獙?shí)現(xiàn)firebase,所以不得不改成16。使用以前版本的 firebase 不是一種選擇。只需將 build.gradle(Module:app) 中的 minSDKVersion 更改為 16,就會(huì)出現(xiàn)以下錯(cuò)誤:Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91    is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:8:5-40:19 to override.我確實(shí)嘗試了它提供的將 'tools:replace="android:appComponentFactory"' 添加到 AndroidManifest.xml 中的元素的建議,但這會(huì)產(chǎn)生更多錯(cuò)誤。我從這個(gè)改變了我的 build.gradle(Module:app) 文件:apply plugin: 'com.android.application'android {    compileSdkVersion 28    defaultConfig {        applicationId "com.comapny.app"        minSdkVersion 15        targetSdkVersion 28        versionCode 1        versionName "1.0"        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"    }    buildTypes {        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'        }    }}dependencies {    implementation fileTree(dir: 'libs', include: ['*.jar'])    implementation 'com.android.support:appcompat-v7:28.0.0'    implementation 'com.android.support.constraint:constraint-layout:1.1.3'    implementation 'com.android.support:design:28.0.0'    implementation 'com.android.support:support-v4:28.0.0'    testImplementation 'junit:junit:4.12'    androidTestImplementation 'com.android.support.test:runner:1.0.2'    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'    implementation 'com.android.volley:volley:1.1.0'}
查看完整描述

1 回答

?
POPMUISE

TA貢獻(xiàn)1765條經(jīng)驗(yàn) 獲得超5個(gè)贊

嘗試將 firebase 依賴項(xiàng)從降級(jí)17.0.0為16.0.7


這是我目前正在使用的版本并且可以正常工作。


對(duì) firebase 版本要非常小心。如果您設(shè)置了錯(cuò)誤的版本,有些依賴項(xiàng)會(huì)使您的項(xiàng)目崩潰。


這是我使用的一些穩(wěn)定依賴項(xiàng)的列表:


implementation 'com.google.firebase:firebase-core:16.0.7'

implementation 'com.google.firebase:firebase-messaging:17.4.0'

implementation 'com.google.firebase:firebase-auth:16.1.0'

implementation 'com.google.firebase:firebase-firestore:18.1.0'

implementation 'com.google.firebase:firebase-functions:16.3.0'

implementation 'com.google.firebase:firebase-perf:16.2.3'

implementation 'com.google.firebase:firebase-config:16.3.0'

implementation 'com.google.firebase:firebase-database:16.1.0'


查看完整回答
反對(duì) 回復(fù) 2023-02-23
  • 1 回答
  • 0 關(guān)注
  • 145 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)