dependencies {
implementation("me.eugeniomarletti:joda-time-android-no-tzdb:$version")
}
Create a custom Android Application
(if you don't have one already):
package com.example
import android.app.Application
import me.eugeniomarletti.android.joda.notzdb.initJodaTimeForAndroid
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
initJodaTimeForAndroid() // that's it!
}
}
Remember to have the correct android:name
inside the application
tag of your AndroidManifest.xml
:
<manifest
...>
<application
android:name=".MyApplication"
...