Добавить
Код: Выделить всё
buildscript {
dependencies {
classpath "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1"
}
}
Код: Выделить всё
plugins {
id "com.google.android.libraries.mapsplatform.secrets-gradle-plugin"
}
Код: Выделить всё
allprojects {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}}
Ошибка:
Код: Выделить всё
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Cannot resolve external dependency com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1 because no repositories are defined.
Required by:
project :
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 609ms
Подробнее здесь: https://stackoverflow.com/questions/780 ... e-platform
Мобильная версия