gpt4 book ai didi

java - 如何解决 list 合并失败的问题?

转载 作者:行者123 更新时间:2023-11-29 23:06:08 24 4
gpt4 key购买 nike

我收到这样的错误消息。有人可以帮我解决这个问题吗?

“ list 合并失败:uses-sdk:minSdkVersion 15 不能小于库 [com.google.firebase:firebase-auth:17.0.0] C:\Users\Rusiru.gradle\caches\transforms 中声明的版本 16 -1\files-1.1\firebase-auth-17.0.0.aar\2a8aa5604754dd2bbbd6d91f1ec6c173\AndroidManifest.xml 因为该库可能正在使用 15 中不可用的 API 建议:使用minSdk最多15的兼容库, 或将此项目的 minSdk 版本增加到至少 16, 或使用 tools:overrideLibrary="com.google.firebase.auth"强制使用(可能导致运行时失败)"

这是我的 list

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.tinder_exp1">



<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity"/>
<activity android:name=".ChooseLoginRegistrationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>```


``` implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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.lorentzos.swipecards:library:1.0.9'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.google.firebase:firebase-database:17.0.0'```

最佳答案

将 minSdkVersion 从 gradle 更新到 API 级别 16

或者降级你的 Firebase 版本

关于java - 如何解决 list 合并失败的问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56498643/

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