Home>

We become indebted to.
I was setting up while looking at the HP to incorporate the ML kit for FIREBASE in Android Studio.
I added the setting to build gradle and synchronized it, but the following error appears.
"Plugin with id'com.android.application' not found."
I tried to follow the HP of FIREBASE, but this synchronization does not work.
At first, the version of gradle was not the latest, so I wonder if it is occurring
I upgraded the gradle version from 6.1.1 to 6.5.1 and synchronized, but it still occurs. .. ..
I'm having a hard time finding the cause, so I'm sorry, but could you give me some advice?

--- build gradle (project) ---
buildscript {
    repositories {
        google ()
        jcenter ()
    }
    dependencies {
        classpath'com.google.gms: google-services: 4.3.4'
        // NOTE: Do not place your application dependencies here;they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        google ()
        jcenter ()
    }
}
task clean (type: Delete) {
    delete rootProject.buildDir
}
--- build gradle (module) ---
apply plugin:'com.android.application'
apply plugin:'com.google.gms.google-services'
android {
    compileSdkVersion 30
    buildToolsVersion "30.0.1"
    defaultConfig {
        applicationId "com.e.tonikakukawaii"
        minSdkVersion 26
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile ('proguard-android-optimize.txt'),'proguard-rules.pro'
        }
    }
}
dependencies {
    implementation fileTree (dir: "libs", include: ["*. Jar"])
    implementation'androidx.appcompat: appcompat: 1.2.0'
    implementation'androidx.constraintlayout: constraintlayout: 2.0.2'
    testImplementation'junit: junit: 4.12'
    androidTestImplementation'androidx.test.ext: junit: 1.1.2'
    androidTestImplementation'androidx.test.espresso: espresso-core: 3.3.0'
    implementation platform ('com.google.firebase: firebase-bom: 26.0.0')
    implementation'com.google.firebase: firebase-analytics'

}