未找到插件 [id: 'com.google.gms.google-services']

     2023-04-13     101

关键词:

【中文标题】未找到插件 [id: \'com.google.gms.google-services\']【英文标题】:Plugin [id: 'com.google.gms.google-services'] was not found未找到插件 [id: 'com.google.gms.google-services'] 【发布时间】:2021-12-22 22:32:24 【问题描述】:

当我尝试将云 Firestore SDK 添加到您的应用时,它会显示一个错误。

错误: enter image description here

bulid.gradle 项目的图片: enter image description here

project.setting 的图片: enter image description here

请帮帮我...

plugins 

    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
    id 'com.google.gms.google-services'


android 
    compileSdk 31

    defaultConfig 
        applicationId "com.example.faltu3"
        minSdk 16
        targetSdk 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    

    buildTypes 
        release 
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        
    
    compileOptions 
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    
    kotlinOptions 
        jvmTarget = '1.8'
    


dependencies 

    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
    implementation 'com.google.firebase:firebase-firestore:24.0.0'
    implementation 'com.android.support:support-annotations:28.0.0'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

【问题讨论】:

【参考方案1】:

您需要在 build.gradle(projectname) 中添加以下依赖项 " 类路径 'com.google.gms:google-services:4.3.10' "

以及 build.gradle(:app) 中的“应用插件:'com.google.gms.google-services'”

【讨论】:

插件 [id: 'org.springframework.boot', version: '2.0.2.RELEASE'] 未找到

】插件[id:\\\'org.springframework.boot\\\',version:\\\'2.0.2.RELEASE\\\']未找到【英文标题】:Plugin[id:\'org.springframework.boot\',version:\'2.0.2.RELEASE\']wasnotfound插件[id:\'org.springframework.boot\',version:\'2.0.2.RELEASE\']未找到 查看详情

未找到 ID 为“org.sonarqube”的插件

】未找到ID为“org.sonarqube”的插件【英文标题】:Pluginwithid\'org.sonarqube\'notfound【发布时间】:2017-12-2022:15:04【问题描述】:我正在尝试使用gradle为我的项目实施代码覆盖率测量的声纳。我们正在使用gradle-4.0.1和sonarqube-6.4。当我... 查看详情

未找到插件 [id: 'com.google.gms.google-services']

】未找到插件[id:\\\'com.google.gms.google-services\\\']【英文标题】:Plugin[id:\'com.google.gms.google-services\']wasnotfound未找到插件[id:\'com.google.gms.google-services\']【发布时间】:2021-12-2222:32:24【问题描述】:当我尝试将云FirestoreSDK添加到您的应... 查看详情

未找到 ID 为“org.springframework.boot”的插件

】未找到ID为“org.springframework.boot”的插件【英文标题】:pluginwithid\'org.springframework.boot\'notfound【发布时间】:2019-08-0407:37:24【问题描述】:我想使用gradle5.2将springboot插件包含到我的项目中。下面是我的build.gradle的当前状态,然... 查看详情

未找到 ID 为“com.android.feature”的插件。安卓

】未找到ID为“com.android.feature”的插件。安卓【英文标题】:Pluginwithid\'com.android.feature\'notfound.Android【发布时间】:2021-03-1401:28:21【问题描述】:这可能是一个重复的问题,但我在尝试使用新项目创建即时应用时遇到了严重问题... 查看详情

错误:(2, 0) 未找到 ID 为“jetty”的插件

】错误:(2,0)未找到ID为“jetty”的插件【英文标题】:Error:(2,0)Pluginwithid\'jetty\'notfound【发布时间】:2018-04-0902:36:51【问题描述】:昨天我将AndroidStudio升级到3.0版,但我正在使用LibGdx,升级后我无法构建我的项目。当我尝试构建... 查看详情

未找到 ID 为“com.google.firebase.appdistribution”的插件

】未找到ID为“com.google.firebase.appdistribution”的插件【英文标题】:Pluginwithid\'com.google.firebase.appdistribution\'notfound【发布时间】:2020-03-0106:28:08【问题描述】:我正在尝试通过Gradle将Firebase应用分发添加到我的Android应用并看到此错... 查看详情

Gradle 无法安装 - Gradlew InstallDebug 失败插件,ID 为“...”未找到

】Gradle无法安装-GradlewInstallDebug失败插件,ID为“...”未找到【英文标题】:GradleFailstoinstall-GradlewInstallDebugfailspluginwithid"..."notfound【发布时间】:2020-05-0401:40:43【问题描述】:我所有的队友都可以运行这个项目,但在我的... 查看详情

未找到 ID 为“com.android.model.native”的插件

】未找到ID为“com.android.model.native”的插件【英文标题】:Pluginwithid\'com.android.model.native\'notfound【发布时间】:2021-01-0801:45:14【问题描述】:我正在尝试使用AndroidStudio从我的C项目中开发一个模块。我遇到了问题。我做错了什么... 查看详情

错误:(1, 0) 未找到 ID 为“com.android.application”的插件

】错误:(1,0)未找到ID为“com.android.application”的插件【英文标题】:Error:(1,0)Pluginwithid\'com.android.application\'notfound【发布时间】:2014-09-0719:48:31【问题描述】:这是我第一次尝试AndroidStudio。我安装了0.8.0并更新到0.8.2。一旦创建项... 查看详情

收到“错误:未找到 ID 为 'com.google.gms.google-services' 的插件”错误

】收到“错误:未找到ID为\\\'com.google.gms.google-services\\\'的插件”错误【英文标题】:Getting"ERROR:Pluginwithid\'com.google.gms.google-services\'notfound"error收到“错误:未找到ID为\'com.google.gms.google-services\'的插件”错误【发布时间】... 查看详情

在以下任何来源中均未找到插件 [id: 'org.jetbrains.kotlin.jvm', version: '1.2.71']

】在以下任何来源中均未找到插件[id:\\\'org.jetbrains.kotlin.jvm\\\',version:\\\'1.2.71\\\']【英文标题】:Plugin[id:\'org.jetbrains.kotlin.jvm\',version:\'1.2.71\']wasnotfoundinanyofthefollowingsources在以下任何来源中均未找到插件[id:\'org.jetbrains.kotlin.jv 查看详情

未找到 ID 为“com.google.gms.google-services”的插件 打开文件

】未找到ID为“com.google.gms.google-services”的插件打开文件【英文标题】:Pluginwithid\'com.google.gms.google-services\'notfoundOpenFile【发布时间】:2020-02-2423:31:42【问题描述】:Ihavefollowedthislinkwithnosuccesstosolvingtheissue.还有这个Pluginwithid\'com 查看详情

未找到 ID 为“com.google.gms.google-services”的插件

】未找到ID为“com.google.gms.google-services”的插件【英文标题】:Pluginwithid\'com.google.gms.google-services\'notfound【发布时间】:2017-02-1423:59:40【问题描述】:我已关注此link在我的应用中集成广告。但它显示了这个错误:这是我的build.gra... 查看详情

未找到 ID 为“com.google.gms:google-services”的插件。扑

】未找到ID为“com.google.gms:google-services”的插件。扑【英文标题】:Pluginwithid\'com.google.gms:google-services\'notfound.Flutter【发布时间】:2019-08-1301:53:01【问题描述】:我是Flutter框架的新手。我正在尝试在Flutter中安装CloudFirestore,但遇... 查看详情

Android Studio 错误:未找到 ID 为“com.google.gms.google-services”的插件

】AndroidStudio错误:未找到ID为“com.google.gms.google-services”的插件【英文标题】:AndroidStudioError:Pluginwithid\'com.google.gms.google-services\'notfound【发布时间】:2021-02-2716:21:10【问题描述】:我是Android开发新手。我在这个项目中使用Firebas... 查看详情

为啥我的 Gradle 构建失败并出现“未找到插件 [id: 'org.flywaydb.enterprise.flyway', version: '6.5.0']”错误?

】为啥我的Gradle构建失败并出现“未找到插件[id:\\\'org.flywaydb.enterprise.flyway\\\',version:\\\'6.5.0\\\']”错误?【英文标题】:WhydoesmyGradlebuildfailwitha"Plugin[id:\'org.flywaydb.enterprise.flyway\',version:\'6.5.0\']wasnotfound"error 查看详情

未找到插件“kotlin-parcelize”

】未找到插件“kotlin-parcelize”【英文标题】:Plugin\'kotlin-parcelize\'notfound【发布时间】:2021-03-0622:18:09【问题描述】:Google建议用户从kotlin-android-extensions迁移到kotlin-parcelize。但是,Gradle同步失败并出现以下错误:Plugin[id:\'kotlin-p... 查看详情