Hello, everyone! I am having a hard time trying t...
# ask-questions
a
Hello, everyone! I am having a hard time trying to get my Kotlin backend work properly. I am following instructions from the "SDK Connections" page at GrowthBook as well as from the Kotlin SDK README. I have tried a bunch of different approaches but I can't get the SDK working. I tried
GBNetworkDispatcherKtor
rather than
GBNetworkDispatcherOkHttp
, I tried wrap the code within
runBlocking
, tried to call
refreshCache
manually, but the features can't get loaded. Here's the dependencies:
Copy code
// build.gradle.kts
dependencies {
  implementation("io.growthbook.sdk:GrowthBook:5.0.1")
  implementation("io.growthbook.sdk:NetworkDispatcherOkHttp:1.0.2")
}
The program can't load the features although I can fetch them properly through the host url. Also, the status is "Connected" in the SDK Connections page.
gb.getFeatures()
is always empty. Could anybody please help? The code is in the snippet below