Renaming “java” directory to “kotlin” in Android Studio

后端 未结 7 911
挽巷
挽巷 2021-01-31 01:40

My android project is written 100% in Kotlin and I wanted to rename the java directory to kotlin to be consistent. I added

sourceSets{
    main.java.srcDirs +=         


        
7条回答
  •  深忆病人
    2021-01-31 02:22

    I think this feature Android Studio. By default, the folder with the source code it is marked as "java". Even if you are in the "src/main" folder contains "kotlin" and "java".

提交回复
热议问题