I just started learning Kotlin for android development and started an empty project and added an activity. I have added the required gradle dependencies as said in Kotlin do
Well, check your gradle , have you added support:appcompat dependency in app/build.gradle file ? also appcompat:design dependency
There is problem with version 25.4.0 of support libraries by me. I returned to version 25.3.1 and the layout render works.
I solved this issue by change the support design version to the same appcompat version. This is my sample dependencies
dependencies {
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
}
Previously i used
compile 'com.android.support:design:25.4.0
'
If none of the above works the try this:
This answer will most probably solve the issue.
This solution may help you. Modify style.xml from:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>
to:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
</style>