You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级Firebase 15.x API时找不到firebase-invites:15.0.2依赖问题

解决Firebase 15.x版本找不到firebase-invites依赖的问题

Hey there, let's work through this dependency error you're hitting! The issue here is that firebase-invites has been deprecated and merged into other Firebase libraries starting from version 15.x, which is why you can't find the 15.0.2 version of that dependency—it no longer exists as a standalone package.

Here's how you can fix this:

  • First, remove the outdated com.google.firebase:firebase-invites:15.0.2 line from your app-level build.gradle file.
  • Replace it with the appropriate Firebase library based on the functionality you need:
    • If you were using Firebase Invites for sharing invite links or referral functionality, switch to Firebase Dynamic Links with this dependency:
      com.google.firebase:firebase-dynamic-links:15.0.2
      
    • If you were using it to send app invites to test users, Google now recommends using Firebase App Distribution with this dependency:
      com.google.firebase:firebase-appdistribution:15.0.2
      

    Tip: Make sure the version number matches the rest of your Firebase dependencies to avoid version conflicts.

  • Double-check your project-level build.gradle has a compatible Google Services plugin version (required for Firebase 15.x):
    classpath 'com.google.gms:google-services:4.2.0' // Or a newer compatible version
    
  • Finally, sync your project with Gradle files, and run a clean build to clear any cached dependencies:
    ./gradlew clean build
    

Firebase started phasing out some older standalone libraries in the 15.x release cycle to consolidate functionality into more focused modules, so this kind of dependency shift is expected.

内容的提问来源于stack exchange,提问作者Peter

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 11:05:16