codelab-android-room-with-a-view icon indicating copy to clipboard operation
codelab-android-room-with-a-view copied to clipboard

Gradle needs updating to kotlin

Open scottbiggs opened this issue 1 year ago • 4 comments

The gradle code samples in page 4 (https://developer.android.com/codelabs/android-room-with-a-view-kotlin#3) are all in groovy, which is being replaced by kotlin (didn't you know that?).

Please add a kotlin gradle version of this code. Converting between the old groovy and the new kotlin format is extremely tricky for beginners (I gave up).

scottbiggs avatar Jun 26 '24 22:06 scottbiggs

Hi, Please assign this issue to me, I can solve this.

cyCaffine avatar Jul 05 '24 12:07 cyCaffine

When you do this please also migrate the sample code from kapt to ksp.

Nick-P-M avatar Jul 26 '24 11:07 Nick-P-M

Agreed, it's pretty hard to follow the code when the version of Android Studio you have (latest version) isn't comptiable. Makes it hugely frustrating.

MrJanuszJasinski avatar Aug 07 '24 08:08 MrJanuszJasinski

Agreed, it's pretty hard to follow the code when the version of Android Studio you have (latest version) isn't comptiable. Makes it hugely frustrating.

I've just run into this issue in attempting to work through this codelab. If/when someone updates this, I would like to give it a test run.

dhsilber avatar Aug 10 '24 20:08 dhsilber