Why kotlin gradle plugin cannot build with 1.8 target?

前端 未结 10 2144
悲哀的现实
悲哀的现实 2020-12-08 12:50

I have the simplest gradle project configured using intellij for kotlin 1.2.10. Here is my build.gradle file:

buildscript {
    ext.kotlin_version = \'1.2.10         


        
10条回答
  •  盖世英雄少女心
    2020-12-08 13:05

    In my case, I tried all @alisabzevari options including given in comment, but It didn't work,

    my mistake I added java file also in src/kotlin/ folder, later I converted java file to kotlin file. and Voila! It works.

    May be it will help somebody.

提交回复
热议问题