I still don't understand why this happens. I didn'...
# community-support
a
I still don't understand why this happens. I didn't do nothing and suddenly I got this error says Plugin with id 'com.android.application' was already requested at line 1 here the code: <Pj> build.gradle.kts
Copy code
plugins {
    id("com.android.application")
    // Add the Google services Gradle plugin
    id("com.google.gms.google-services")
    alias(libs.plugins.android.application)
}

android {
    namespace = "com.example.musicapp"
    compileSdk = 34

    defaultConfig {
        applicationId = "com.example.musicapp"
        minSdk = 26
        targetSdk = 34
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "<http://proguard-rules.pro|proguard-rules.pro>"
            )
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation(libs.appcompat)
    implementation(libs.material)
    implementation(libs.activity)
    implementation(libs.constraintlayout)
    testImplementation(libs.junit)
    androidTestImplementation(libs.ext.junit)
    androidTestImplementation(libs.espresso.core)


    // Import the Firebase BoM
    implementation(platform("com.google.firebase:firebase-bom:33.6.0"))

    implementation("com.google.firebase:firebase-analytics")
    // Add the dependencies for any other desired Firebase products
    // <https://firebase.google.com/docs/android/setup#available-libraries>

    implementation("com.google.firebase:firebase-auth")

}
<module> build.gradle.kts
a
In
plugins {}
block you have: 1. id("com.android.application") 2. alias(libs.plugins.android.application) Does
libs.plugins.android.application
points to
"com.android.application"
?
☝️ 1
❤️ 1