Idea issue with kotlin-android project

I have problem using Idea with kotlin and Android project. For example we have code:

setContentView(R.layout.activity_main) val text:TextView =  findViewById(R.id.myText) as TextView

if I click(Ctrl+Click) with to R.layout.activity_main I exptected to see res/layout/activity_main.xml but Idea redirect me to t R.java class The same problem with R.id.myText I expected to see TextView inside activity_main.xml but not R.java

How to fix this ?

Thank you

What versions of Idea and Kotlin are you using?

Idea 13.1.4 Idea Kotlin Plugin 0.8.11

Java 1.8.0_11

ext.kotlin_version = ‘0.8.484’

apply plugin: ‘android’
apply plugin: ‘kotlin-android’


dependencies {
  classpath ‘com.android.tools.build:gradle:0.10.+’
  classpath “org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version”
  }

dependencies {
  compile fileTree(dir: ‘libs’, include: [‘*.jar’])
  compile ‘com.android.support:appcompat-v7:20.+’
  compile “org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version”
}

In the java classes in the same module all works perfect as expected

Thank you for report! You can follow this issue to know when it'll be fixed.