I`ve got errors in class:
package com.google.sl

import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.ViewTreeObserver
import android.view.animation.AnticipateInterpolator
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.ViewModelProvider
import kotlin.random.Random

@SuppressLint("CustomSplashScreen")
class SplashActivity : AppCompatActivity() {

    private lateinit var viewModel: SplashViewModel
    private lateinit var fractalView: FractalView

    override fun onCreate(savedInstanceState: Bundle?) {
        val splashScreen = installSplashScreen()

        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_splash)

        fractalView = findViewById(R.id.fractal_view)
        fractalView.fractalType = getRandomFractalType()

        viewModel = ViewModelProvider(this).get(SplashViewModel::class.java)

        // Keep the splash screen visible until data is ready
        splashScreen.setKeepOnScreenCondition { !viewModel.isReady }

        splashScreen.setOnExitAnimationListener { splashScreenView ->
            val slideUp = ObjectAnimator.ofFloat(
                splashScreenView, View.TRANSLATION_Y, 0f, -splashScreenView.height.toFloat()
            )
            slideUp.interpolator = AnticipateInterpolator()
            slideUp.duration = 500L

            slideUp.doOnEnd { splashScreenView.remove() }

            slideUp.start()
        }

        // Start loading data
        viewModel.loadData()

        // Pre-draw listener (optional)
        val content: View = findViewById(R.id.splash_root)
        content.viewTreeObserver.addOnPreDrawListener(object : ViewTreeObserver.OnPreDrawListener {
            override fun onPreDraw(): Boolean {
                return if (viewModel.isReady) {
                    content.viewTreeObserver.removeOnPreDrawListener(this)
                    true
                } else {
                    false
                }
            }
        })

        viewModel.isReadyLiveData.observe(this) { isReady ->
            if (isReady) {
                // Navigate to MainActivity
                startActivity(Intent(this, MainActivity::class.java))
                finish()
            }
        }
    }

    private fun getRandomFractalType(): FractalType {
        val fractalTypes = FractalType.values()
        val randomIndex = Random.nextInt(fractalTypes.size)
        return fractalTypes[randomIndex]
    }
}

1) <html>None of the following functions can be called with the arguments supplied:<br/>public open fun &lt;T : Any!&gt; ofFloat(target: TypeVariable(T)!, xProperty: Property&lt;TypeVariable(T)!, Float!&gt;!, yProperty: Property&lt;TypeVariable(T)!, Float!&gt;!, path: Path!): ObjectAnimator! defined in android.animation.ObjectAnimator<br/>public open fun &lt;T : Any!&gt; ofFloat(target: TypeVariable(T)!, property: Property&lt;TypeVariable(T)!, Float!&gt;!, vararg values: Float): ObjectAnimator! defined in android.animation.ObjectAnimator<br/>public open fun ofFloat(target: Any!, propertyName: String!, vararg values: Float): ObjectAnimator! defined in android.animation.ObjectAnimator<br/>public open fun ofFloat(target: Any!, xPropertyName: String!, yPropertyName: String!, path: Path!): ObjectAnimator! defined in android.animation.ObjectAnimator<br/>public open fun ofFloat(vararg values: Float): ValueAnimator! defined in android.animation.ObjectAnimator
2) Unresolved reference: height
3) Variable expected:39