title: Unresolved reference: kotlinx
body: <p>I am trying to try out Kotlin and the Kotlin Android extensions in Android Studio.  I have tried this both in Android Studio v 1.5.1 on Ubuntu 14.04, and in Android Studio v 1.5.1 on OS X El Capitan with the same result.</p>
  
  <p>Here is what I am doing:</p>
  
  <ol>
  <li>I install the Kotlin plugin 1.0.0-beta-35950-IJ141-11</li>
  <li>Create a new blank Android project</li>
  <li>Convert the MainActivity file to Kotlin (via help->findaction->convert file to kotlin) </li>
  <li>Configure the project for Kotlin</li>
  </ol>
  
  <p>I then go into the generated content_main.xml file and add an id (hello) for the "Hello World!" TextView.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="com.gmail.npnster.mykotlinfirstproject.MainActivity"
      tools:showIn="@layout/activity_main"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Hello World!"
          android:id="@+id/hello"
          /&gt;
  &lt;/RelativeLayout&gt;  
  </code></pre>
  
  <p>Then in the converted MainActivity I add a line to set the TextView. (shown below).
  Android Studio then prompts me (via alt-enter) to insert this line (also shown below)</p>
  
  <pre><code>import kotlinx.android.synthetic.main.content_main.*
  </code></pre>
  
  <p>So at this point everything <em>seems</em> fine</p>
  
  <p>but then when I try to compile this I get </p>
  
  <pre><code>Unresolved reference: kotlinx
  Unresolved reference: kotlinx
  Unresolved reference: hello
  </code></pre>
  
  <p>Notice that I did <strong>not</strong> install the Kotlin Android extensions plugin.  As of a couple of days ago this is now supposed to be included in the main plug in and is marked as obsolete.  (In fact if you try to install it when you have the latest plugin, nothing new is installed) </p>
  
  <p>Anyone see what I am doing wrong?</p>
  
  <p>MainActivity</p>
  
  <pre><code>import android.os.Bundle
  import android.support.design.widget.FloatingActionButton
  import android.support.design.widget.Snackbar
  import android.support.v7.app.AppCompatActivity
  import android.support.v7.widget.Toolbar
  import android.view.View
  import android.view.Menu
  import android.view.MenuItem
  import kotlinx.android.synthetic.main.content_main.*
  
  
  class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
          val toolbar = findViewById(R.id.toolbar) as Toolbar
          setSupportActionBar(toolbar)
          print("setting text view value to hey")
          hello.text = "hey"
  
          val fab = findViewById(R.id.fab) as FloatingActionButton
          fab.setOnClickListener { view -&gt; Snackbar.make(view, "Replace this with your own action", Snackbar.LENGTH_LONG).setAction("Action", null).show() }
      }
  
      override fun onCreateOptionsMenu(menu: Menu): Boolean {
          // Inflate the menu; this adds items to the action bar if it is present.
          menuInflater.inflate(R.menu.menu_main, menu)
          return true
      }
  
      override fun onOptionsItemSelected(item: MenuItem): Boolean {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          val id = item.itemId
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              return true
          }
  
          return super.onOptionsItemSelected(item)
      }
  }
  </code></pre>