Lateinit property mapController has not been initialized

I’m trying to display map (for navigation) using MapView. I prefer not to use MapFragment.
However I get this error when calling mapView.getMapAsync:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tomtomtest/com.example.tomtomtest.MainActivity}: kotlin.UninitializedPropertyAccessException: lateinit property mapController has not been initialized
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3645)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7872)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
     Caused by: kotlin.UninitializedPropertyAccessException: lateinit property mapController has not been initialized
        at com.tomtom.sdk.map.display.ui.MapView.getMapAsync(Unknown Source:25)
        at com.example.tomtomtest.MainActivity.onCreate(MainActivity.kt:99)
        at android.app.Activity.performCreate(Activity.java:8305)
        at android.app.Activity.performCreate(Activity.java:8284)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:201) 
        at android.os.Looper.loop(Looper.java:288) 
        at android.app.ActivityThread.main(ActivityThread.java:7872) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

This Is my onCreate method:

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        val constraintLayout = ConstraintLayout(this)
        var mTomTomMap: TomTomMap

        val constraintLayoutParams = ConstraintLayout.LayoutParams(
            ViewGroup.LayoutParams.MATCH_PARENT,
            ViewGroup.LayoutParams.MATCH_PARENT
        )
        constraintLayout.layoutParams = constraintLayoutParams

        val mapOptions = MapOptions(mapKey = tomtomApiKey)
        val mTomTomMapView = MapView(applicationContext, mapOptions)
        val mTomTomNavigationView = NavigationView(applicationContext)

        constraintLayout.addView(mTomTomMapView)
        constraintLayout.addView(mTomTomNavigationView)

        setContentView(constraintLayout)

        mTomTomMapView.getMapAsync() { map ->
         mTomTomMap = map
        }
    }

NB: MainActictivity.kt line 99 is mTomTomMapView.getMapAsync() { map ->

Probably the reason is that onCreate() on the MapView is not called.
From the docs (MapView):
Direct usage of this class must ensure binding between the following lifecycle methods:

  • onCreate(bundle: Bundle?)- called when the parent, lifecycle aware component is being created. The bundle argument contains extra data which shall be handled by calling the corresponding onSaveInstanceState(bundle: Bundle) callback.