Skip to content

Commit eaee7b4

Browse files
committed
Updates the gradle configuration to work for the newer android studio
1 parent fbc5ef8 commit eaee7b4

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

app/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ plugins {
2121
}
2222

2323
android {
24-
compileSdkVersion 33
24+
namespace 'com.example.sqlbasics'
25+
compileSdk 34
2526

2627
defaultConfig {
2728
applicationId "com.example.sqlbasics"
2829
minSdkVersion 19
29-
targetSdkVersion 33
30+
targetSdkVersion 34
3031
versionCode 1
3132
versionName "1.0"
3233

@@ -49,10 +50,11 @@ android {
4950
}
5051

5152
dependencies {
52-
def room_version = '2.4.3'
53+
def room_version = '2.6.1'
5354

5455
implementation "androidx.room:room-runtime:$room_version"
5556
kapt "androidx.room:room-compiler:$room_version"
57+
//ksp("androidx.room:room-compiler:$room_version")
5658

5759
// optional - Kotlin Extensions and Coroutines support for Room
5860
implementation "androidx.room:room-ktx:$room_version"

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@ buildscript {
2222
mavenCentral()
2323
}
2424
dependencies {
25-
classpath 'com.android.tools.build:gradle:7.3.1'
25+
classpath 'com.android.tools.build:gradle:8.7.2'
2626
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2727

2828
// NOTE: Do not place your application dependencies here; they belong
2929
// in the individual module build.gradle files
3030
}
3131
}
3232

33+
plugins {
34+
id 'org.jetbrains.kotlin.android' version '1.9.21' apply false
35+
36+
//id("com.google.devtools.ksp") version "1.8.10-1.0.9" apply false
37+
}
38+
3339
allprojects {
3440
repositories {
3541
google()

0 commit comments

Comments
 (0)