title: Kotlin javaClass<> missing dependency in latest Android Studio 3.0
body: <p><strong>Toolchain</strong>: </p>
  
  <ul>
  <li><p>Android Studio 3.0 Canary 2:</p>
  
  <p>Build #AI-171.4041253, built on May 24, 2017
  JRE: 1.8.0_112-release-b736 x86_64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  Mac OS X 10.12.5</p></li>
  <li><p>Google SDK/Tools: I have downloaded the latest "all" (Android O, tools, libraries, etc. at least according to Android Studio SDK Manager). </p></li>
  </ul>
  
  <p><strong>Problem</strong>: <code>javaClass&lt;&gt;</code> is missing and Android Studio can't "import it".</p>
  
  <p><strong>What I did</strong>:</p>
  
  <ol>
  <li><p>Create new Android project, target API 23 and told it to include a "basic activity".</p></li>
  <li><p>Added the Gradle dependencies for ViewModel and Room taken from: <a href="https://developer.android.com/topic/libraries/architecture/adding-components.html" rel="nofollow noreferrer">https://developer.android.com/topic/libraries/architecture/adding-components.html</a></p></li>
  </ol>
  
  <p>These are the lines I added to my App Module's gradle file: </p>
  
  <pre><code>compile "android.arch.lifecycle:runtime:1.0.0-alpha1"
  compile "android.arch.lifecycle:extensions:1.0.0-alpha1"
  annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha1"    
  compile "android.arch.persistence.room:runtime:1.0.0-alpha1"
  annotationProcessor "android.arch.persistence.room:compiler:1.0.0-alpha1"
  </code></pre>
  
  <ol start="3">
  <li><p>The Kotlin reference in the same Gradle is: <code>compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"</code> (I didn't add that one, came automatically)</p></li>
  <li><p>I then created a simple Kotlin class called <code>MainViewModel</code>: </p>
  
  <p>import android.arch.lifecycle.ViewModel
  class MainViewModel : ViewModel() {}</p></li>
  <li><p>Then I went to my Activity and tried to do what this Google Documentation says: <a href="https://developer.android.com/topic/libraries/architecture/viewmodel.html" rel="nofollow noreferrer">https://developer.android.com/topic/libraries/architecture/viewmodel.html</a></p></li>
  </ol>
  
  <p>It's in Java but converted to Kotlin, <em>I think</em> it should look like: </p>
  
  <p><code>val mainViewModel = ViewModelProviders.of(this).get(javaClass&lt;MainViewModel&gt;)</code></p>
  
  <p>The problem is that Android Studio is not finding javaClass and the fix (to press <kbd>⌥</kbd><kbd>⏎</kbd>) doesn’t do anything. </p>
  
  <p><a href="https://i.stack.imgur.com/tbigR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tbigR.png" alt="Android Studio screen shot"></a></p>
  
  <h3>What am I missing?</h3>