This is my first time building an android application. However when i run the app on my Virtual Device, it stopped working and keeps crashing. The error says something about
Your EditText is null. You can initialize your EditText. Example Kotlin code,
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_add_sales)
val date = findViewById(R.id.editTextDate)
date.apply {
setText("15-11-2017")
isEnabled = false
}
}