You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest version (16.0.0-beta05) of the Vertex AI in Firebase SDK is no longer exporting the Firebase object, resulting in the error below:
Unresolved reference 'Firebase'.
Cannot access class 'com.google.firebase.Firebase'. Check your module classpath for missing or conflicting dependencies.
I suspect this is because in #6186 we changed the firebase-common dependency from api() to implementation().
Note that this doesn't break for developers that are using the Vertex AI alongside other Firebase services (like auth, or functions, etc) since the other service will pull firebase-common. It only breaks for developers solely using Vertex AI.
Steps to reproduce:
Create a new Android project
Add the com.google.firebase:firebase-vertexai:16.0.0-beta05 dependency to the app's build.gradle file.
Attempt to call Firebase.vertexAI.generativeModel(...)
Notice that Firebase is highlighted in red by the compiler.