title: Kotlin-Android First App Unresolved Reference TextView Button etc
body: <p>I'm new to Android &amp; Kotlin development.</p>
  
  <p>I wanted to get started with a simple "Hello World", but am already running into problems.</p>
  
  <p>I added a Textview to my MainActivity and want to set an onClick listener to change the text of a TextView I dragged into the activity.</p>
  
  <p>The compiler is now complaining that 'TextView' is an unresolved reference (it does the same with Buttons etc.).</p>
  
  <p>I then added a kotlinx import as suggested by a website, but this fails to solve anything. Code sample below, anything with an asterisk as a line comment was added by me.</p>
  
  <pre><code>package com.example.my.mynewapp
  
  import android.support.v7.app.AppCompatActivity
  import android.os.Bundle
  import kotlinx.android.synthetic.main.fragmentX.view.* // *
  
  class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          val textView: TextView = findViewById(R.id.testView) as TextView  // *
          textView.setOnClickListener { // *
              textView.text = "You clicked me! You flipping clicked me!" // *
          } // *
  
      }
  }
  </code></pre>
  
  <p>Would anyone have any idea what's going on?</p>