gpt4 book ai didi

android-studio - 插件 [id : 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' ] was not found in any of the following sources:

转载 作者:行者123 更新时间:2023-12-05 02:29:49 26 4
gpt4 key购买 nike

在以下任何来源中均未找到插件 [id: 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin']:

  • 尝试:使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。

'''

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
id 'kotlin-parcelize'

}

'''

最佳答案

问题缺少一些信息。我会建议按照下面的指南逐步操作。 https://developers.google.com/maps/documentation/android-sdk/secrets-gradle-plugin

第一眼想到的两件事是?

  1. 指定插件的版本
plugins {
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1'

}
  1. 在 settings.gradle 或 settings.gradle.kts 的顶部添加以下内容。
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}

rootProject.name = ...

关于android-studio - 插件 [id : 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' ] was not found in any of the following sources:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72023432/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com