A solution to Challenge: Reporting the Device’s Android Version

  //  activity_cheat.xml
    <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/api_level"
            tools:text="Api level" >

        </TextView>

// CheatActivity.kt in OnCreate 

val apiLevel : TextView = findViewById(R.id.api_level)
        val buildNumber = Build.VERSION.SDK_INT.toString()
        apiLevel.text = "API Level:  $buildNumber"