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
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’)