https://kotlinlang.org logo
#android
Title
# android
s

salman

02/14/2023, 5:39 PM
Hi how are you I want migrate my gradle to kts when rename file gradle to extenstion kts it shows this error anyony know how to solve this ? I tried found solution on google and stackOverFlow
c

Chrimaeon

02/14/2023, 5:52 PM
You cannot just rename it. Kotlin has different syntax than groovy. I.e on the bottom I can see include ':app' Which in Kotlin should be include(„:app“) So a function call and the string in double quotes.
s

salman

02/14/2023, 5:56 PM
oh it works thank you
j

Jorge Cordero Camarena

02/14/2023, 6:25 PM
@salman You can check https://github.com/android/nowinandroid and use it as a reference
12 Views