I have build a login and sign up app but getting an error while compiling.
It's a new kotlin class I have created. The error I am getting is
Unresolved reference: setDefaultFont
I have tried to get different ways of typing but no luck
package com.example.loginsignup
import android.app.Application
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
FontsOverride.setDefaultFont(this, "MONOSPACE", "Kol.ttf")
}
}