FirebaseUI 给出编译错误



错误:任务":应用:进程调试清单"执行失败。> 清单合并失败:uses-sdk:minSdkVersion 15 不能小于库中声明的版本 16 [com.firebaseui:firebase-ui:0.4.0] D:\workspace\demo\SampleLoginDemo\app\build\intermediates\exploded-aar\com.firebaseui\firebase-ui\0.4.0\AndroidManifest.xml 建议:使用 firebaseui.0.4.4 时,使用 tools:overrideLibrary="com.firebase.ui" 强制使用 firebaseui.0.4.4

更改compile 'com.firebaseui:firebase-ui:0.4.4'

compile 'com.firebaseui:firebase-ui:1.0.0'

在你的 app/build.gradle 依赖项

   defaultConfig {
        applicationId "....."
        minSdkVersion 14
        ....
    }

   defaultConfig {
        applicationId "....."
        minSdkVersion 16
        ....
    }

我刚刚将所有这些添加到AndroidManifest

`<uses-sdk
    tools:overrideLibrary="
com.google.example.games.basegameutils,
com.google.firebase.firebase_core,
com.google.firebase.firebase_ads,
com.google.android.gms.play_services,
com.google.android.gms.ads.impl,
com.google.android.gms.ads,
com.google.android.gms.analytics,
com.google.android.gms.appinvite,
com.google.android.gms.auth.api,
com.google.android.gms.auth,
com.google.android.gms.cast.framework,
com.google.android.gms.cast,
com.google.android.gms.clearcut,
com.google.firebase.remoteconfig,
com.google.android.gms.contextmanager,
com.google.firebase.crash,
com.google.firebase.auth.api,
com.google.firebase.database,
com.google.firebase.database.connection,
com.google.firebase.messaging,
com.google.firebase.storage,
com.google.android.gms.all,
com.google.android.gms.ads,
com.google.android.gms.auth,
com.google.android.gms.base,
com.google.android.gms.measurement,
com.google.android.gms,
com.google.android.gms.analytics,
com.google.android.gms.appindexing,
com.google.android.gms.appinvite,
com.google.android.gms.appstate,
com.google.android.gms.cast,
com.google.android.gms.drive,
com.google.android.gms.fitness,
com.google.android.gms.location,
com.google.android.gms.maps,
com.google.android.gms.games,
com.google.android.gms.gcm,
com.google.android.gms.identity,
com.google.android.gms.nearby,
com.google.android.gms.panorama,
com.google.android.gms.plus,
com.google.android.gms.safetynet,
com.google.android.gms.wallet,
com.google.android.gms.gass,
com.google.android.gms.iid,
com.google.android.gms.instantapps,
com.google.android.gms.tagmanager.impl,
com.google.android.gms.tagmanager,
com.google.android.gms.measurement.impl,
com.google.firebase.iid,
com.google.firebase,
com.google.android.gms.vision,
com.google.android.gms.wearable,
com.google.android.gms.tasks"/>'

花了很长时间!:)

minSdkVersion 在库[com.firebaseui:firebase-ui:0.4.0]中是 16

因此,您不能在应用中设置小于 minSdkVersion 的版本。

相关内容

  • 没有找到相关文章

最新更新