How to fix YouTubeInitializationResult: SERVICE_INVALID
The version of the YouTube API service installed on this device is not valid. -> Update YouTube app 🙂
The version of the YouTube API service installed on this device is not valid. -> Update YouTube app 🙂
Dependency Add the following to your dependencies implementation(org.jetbrains.kotlinx:kotlinx-datetime:0.2.0) Usage import kotlinx.datetime.* val today = Clock.System.todayAt(TimeZone.currentSystemDefault()) If you target Android devices running below API 26, you need to use Android Gradle plugin 4.0 or newer and enable core library desugaring. https://github.com/Kotlin/kotlinx-datetime
The easiest way to add external dependencies with local jar files to your gradle is: dependencies { implementation(files(“libs/YouTubeAndroidPlayerApi.jar”)) If you don’t want to add every lib individually you can use: dependencies { implementation fileTree(‘libs’)