【问题标题】:only id(String), alias(Provider), or alias(ProviderConvertible) method calls allowed in plugins {} script block插件 {} 脚本块中只允许调用 id(String)、alias(Provider) 或 alias(ProviderConvertible) 方法
【发布时间】:2023-02-19 15:26:51
【问题描述】:

插件 {} 脚本块中只允许调用 id(String)、alias(Provider) 或 alias(Provider Convertible) 方法

【问题讨论】:

  • plugins { id 'com.android.application' version '7.3.1' apply false id 'com.android.library' version '7.3.1' apply false classpath 'com.google.gms:google-services:4.3.15' }
  • 请阐明您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: firebase firebase-realtime-database


【解决方案1】:

尝试这个: 在 build.gradle(:app) 中,在 plugins{} 块中放置这段代码

id 'com.android.application'
id 'com.google.gms.google-services'

然后在 build.gradle 项目级别

id 'com.google.gms.google-services' version '4.3.14' apply false

【讨论】:

    猜你喜欢
    • 2023-02-19
    • 2021-10-10
    • 2023-03-08
    • 2016-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多