Run directly kotlin android activity?



I have question if is possible to run directly android activity.

Manifest from my application is:

<activity android:name=“KotlinActivity”

           <action android:name=“android.intent.action.MAIN”/>
           <category android:name=“android.intent.category.LAUNCHER”/>

package com.example;

import android.os.Bundle;


class KotlinActivity : Activity()

fun onCreate(savedInstanceState : Bundle)

and when I want run I have error:

KotlinActivity is good becouse  when I run this activity from activity which is write in java it run without errors.


The problem seems to be in your manifest: please, check that it runs when you replace a Kotlin class with an analogous Java class.


Hi Ok, it was my mistake.

But in IntelliJ Idea (11.1.2  Kotlin Plugin 0.1.2353) is little inconvenience.
I can’t select a activity which is write in Kotlin language, I must write manually.

or when I want select file on Project tab, button Ok is disabled

Except that everything is works for me.


Please file an issue in our tracker. Thanks