ModuleVersionNotFoundException: Cannot resolve external dependency After updating gradle to .kts

I updated both Gradle files to not use Groovy and go for Kotlin (added the .kts extension)
The project compiles when I click on Sync but when I click on run, it throws a lot of errors, and all of them have the same cause.

org.gradle.internal.resolve.ModuleVersionNotFoundException:Cannot resolve external dependency because no repositories are defined.

What does it mean with no repos defined??

My App level Gradle file is this:

 buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath("com.android.tools.build:gradle:8.5.2")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
        classpath("com.google.dagger:hilt-android-gradle-plugin:2.50")
        classpath("com.google.gms:google-services:4.4.2")
        classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.0")
        classpath("org.jetbrains.kotlin:kotlin-serialization:1.9.0")
    }
}

tasks.register("clean", Delete::class) {
    delete(rootProject.buildDir)
}

And my module level Gradle file is this:

plugins {
    id("com.android.application")
    id("com.google.gms.google-services")
    id("dagger.hilt.android.plugin")
    id("kotlinx-serialization")
    id("kotlin-kapt")
    id("io.gitlab.arturbosch.detekt")
    id("org.jetbrains.kotlin.plugin.compose") version "2.0.0"
    kotlin("android")
}

android {
    namespace = "independent.dev.ui.activities"
    compileSdk = 35

    defaultConfig {
        applicationId = "independent.dev.ui.HomeActivity"
        minSdk = 26
        targetSdk = 34
        versionCode = 133
        versionName = "3.5.36"
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables {
            useSupportLibrary = true
        }
    }

    buildTypes {
        getByName("release") {
            isMinifyEnabled = true
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = "17"
    }
    buildFeatures {
        compose = true
        viewBinding = true
    }
    composeOptions {
        kotlinCompilerExtensionVersion = "1.5.14"
    }
    packaging {
        resources {
            excludes += "/META-INF/{AL2.0,LGPL2.1}"
        }
    }
}

dependencies {
    implementation("androidx.appcompat:appcompat:1.7.0")
    implementation("androidx.viewpager:viewpager:1.0.0")
    implementation("androidx.activity:activity-ktx:1.9.0")
    implementation("androidx.constraintlayout:constraintlayout:2.1.4")
    implementation("androidx.legacy:legacy-support-v4:1.0.0")
    implementation("androidx.recyclerview:recyclerview:1.2.1")
    implementation("androidx.cardview:cardview:1.0.0")
    implementation("com.google.android.material:material:1.12.0")
    implementation("com.google.android.gms:play-services-maps:18.2.0")
    implementation("com.google.firebase:firebase-storage:20.1.0")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
    implementation("androidx.navigation:navigation-compose:2.8.0-beta07")
    androidTestImplementation("androidx.compose.ui:ui-test-junit4")
    annotationProcessor("com.github.bumptech.glide:compiler:4.12.0")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
    implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")

    //Compose
    implementation("androidx.compose.ui:ui:1.6.8")
    implementation("androidx.compose.ui:ui-tooling:1.6.8")
    implementation("androidx.activity:activity-compose:1.9.1")
    implementation("androidx.compose.material:material:1.6.8")
    implementation("androidx.compose.ui:ui-graphics")
    implementation("androidx.compose.ui:ui-tooling-preview")
    implementation("androidx.compose.material3:material3")

    //Hilt
    implementation("com.google.dagger:hilt-android:2.50")
    debugImplementation("androidx.compose.ui:ui-tooling")
    debugImplementation("androidx.compose.ui:ui-test-manifest")
    kapt("com.google.dagger:hilt-compiler:2.50")

    //Retrofit
    implementation("com.squareup.retrofit2:retrofit:2.9.0")
    implementation("com.squareup.retrofit2:converter-gson:2.9.0")
    implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2")

    testImplementation("junit:junit:4.13.2")
    androidTestImplementation("androidx.test.ext:junit:1.1.3")
    androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
}

What could I be doing wrong??

The error log if the following:

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
    at org.gradle.api.internal.artifacts.ResolveExceptionContextualizer.mapFailures(ResolveExceptionContextualizer.java:56)
Cause 1: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.databinding:viewbinding:8.5.2 because no repositories are defined.
Required by:
    project :app
Cause 2: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency org.jetbrains.kotlin:kotlin-stdlib:2.0.0 because no repositories are defined.
Required by:
    project :app
Cause 3: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.ui:ui-tooling because no repositories are defined.
Required by:
    project :app
Cause 4: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.ui:ui-test-manifest because no repositories are defined.
Required by:
    project :app
Cause 5: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.appcompat:appcompat:1.7.0 because no repositories are defined.
Required by:
    project :app
Cause 6: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.viewpager:viewpager:1.0.0 because no repositories are defined.
Required by:
    project :app
Cause 7: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.activity:activity-ktx:1.9.0 because no repositories are defined.
Required by:
    project :app
Cause 8: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.constraintlayout:constraintlayout:2.1.4 because no repositories are defined.
Required by:
    project :app
Cause 9: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.legacy:legacy-support-v4:1.0.0 because no repositories are defined.
Required by:
    project :app
Cause 10: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.recyclerview:recyclerview:1.2.1 because no repositories are defined.
Required by:
    project :app
Cause 11: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.cardview:cardview:1.0.0 because no repositories are defined.
Required by:
    project :app
Cause 12: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.google.android.material:material:1.12.0 because no repositories are defined.
Required by:
    project :app
Cause 13: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.google.android.gms:play-services-maps:18.2.0 because no repositories are defined.
Required by:
    project :app
Cause 14: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.google.firebase:firebase-storage:20.1.0 because no repositories are defined.
Required by:
    project :app
Cause 15: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.lifecycle:lifecycle-runtime-ktx:2.6.1 because no repositories are defined.
Required by:
    project :app
Cause 16: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.navigation:navigation-compose:2.8.0-beta07 because no repositories are defined.
Required by:
    project :app
Cause 17: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3 because no repositories are defined.
Required by:
    project :app
Cause 18: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1 because no repositories are defined.
Required by:
    project :app
Cause 19: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.ui:ui:1.6.8 because no repositories are defined.
Required by:
    project :app
Cause 20: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.ui:ui-tooling:1.6.8 because no repositories are defined.
Required by:
    project :app
Cause 21: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.activity:activity-compose:1.9.1 because no repositories are defined.
Required by:
    project :app
Cause 22: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.material:material:1.6.8 because no repositories are defined.
Required by:
    project :app
Cause 23: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.ui:ui-graphics because no repositories are defined.
Required by:
    project :app
Cause 24: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.ui:ui-tooling-preview because no repositories are defined.
Required by:
    project :app
Cause 25: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency androidx.compose.material3:material3 because no repositories are defined.
Required by:
    project :app
Cause 26: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.google.dagger:hilt-android:2.50 because no repositories are defined.
Required by:
    project :app
Cause 27: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.squareup.retrofit2:retrofit:2.9.0 because no repositories are defined.
Required by:
    project :app
Cause 28: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.squareup.retrofit2:converter-gson:2.9.0 because no repositories are defined.
Required by:
    project :app
Cause 29: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2 because no repositories are defined.
Required by:
    project :app

Throws error on every dependency because of the repo is not defined.

Help please!!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật