Closed ShwetaChauhan18 closed 5 years ago
I think this would be better as a Gradle Forum Post or as a Stack Overflow Question.
The issue tracker really isn't really the place for support questions.
A hint to get you in the right direction, there is no []
syntax in kotlin for declaring a list/set. You need to use something like listOf()
.
sourceSets { main { manifest.srcFile 'src/main/AndroidManifest.xml' java.srcDirs = ['src/main/kotlin', 'src/main/java'] assets.srcDirs = ['src/main/assets'] res.srcDirs = [ 'src/main/res/layouts/activity', 'src/main/res/layouts/fragment', 'src/main/res/layouts/dialog', 'src/main/res/layouts/items', 'src/main/res/layouts/views', 'src/main/res/layouts', 'src/main/res' ] } }
How can I convert this to convert this to Kotlin? I have seen this in https://github.com/gradle/kotlin-dsl/issues/443 issue but for layouts I don't know How to do that. Can you help me please