firebase / firebase/firebase-android-sdk

VertexAi depending ktor 2, time to update?

Open
#6,737 6 comments 13 reactions 0 assignees View on GitHub
api: firebaseai type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 23h
Merged PRs (30d)
34

Description

### [REQUIRED] Step 2: Describe your environment

* Android Studio version: Meerkat Feature Drop Canary 7
* Firebase Component: BOM, Crashlytics, Config, Messaging, Analytics and Vertexai
* Component version: 33.10.0

* Ktor version 3.1.1
* Coil 3.1.0

### [REQUIRED] Step 3: Describe the problem

Vertexai sdk is depending on a older version of ktor 2. And it makes apps running ktor 3 struggling.
I did read this on this closed issue [https://github.com/firebase/firebase-android-sdk/issues/6413](https://github.com/firebase/firebase-android-sdk/issues/6413) that ktor 3 was to new and you want to wait, it's been a while now so I'll raise this issue again.

#### Steps to reproduce:

You can run the app with ktor 3 enabled. But as soon as I call `generativeModel.startChat()` the client crash with `Caused by: java.lang.ClassNotFoundException: Didn't find class "io.ktor.client.plugins.HttpTimeout"`

Hope this can be fixed in a soon rather then later release.
Cheers.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked closed issue 6413 and reproducing the crash with Ktor 3.1.1 when calling generativeModel.startChat(). Done means Vertex AI works in an app using Ktor 3 without the HttpTimeout ClassNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.