升级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.2line from your app-levelbuild.gradlefile. - 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.
- If you were using Firebase Invites for sharing invite links or referral functionality, switch to Firebase Dynamic Links with this dependency:
- Double-check your project-level
build.gradlehas 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
相关产品推荐
相关产品推荐

