-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation instructions throwing UnknownPluginException #31
Comments
Hi @doneill, the instructions on the Maps SDK Quickstart and in this repo are the most up-to-date recommendation. The reason the plugin ID changed is because the plugin artifacts were migrated from Gradle Plugin Portal to Google Maven. Can you share you project-level |
Hi @arriolac, thanks for the quick reply. Maybe there is a hard requirement to have a project level buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
// ...
}
}
plugins {
id "com.google.secrets_gradle_plugin" version "0.6.1"
} This throws the exception: buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:1.3.0"
}
}
plugins {
id "com.google.android.libraries.mapsplatform.secrets-gradle-plugin"
} Exception: Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source) |
A couple things to try: (1) Specify the version of the plugin in the plugins block and try to rebuild.
If that doesn't work, you may need to add the following in your
Let me know if any of this resolves your issue. As a side note, I'm curious why your project only has a single |
Neither of those worked, I had tried using the version explicitly prior. Single build file for single module project. |
Did you get a different exception? |
@doneill were you able to resolve this issue? |
Please reopen if you are still seeing this. |
Hi @arriolac Yes, I continue to get the exceptions I described in the description. The workaround I suggested still works so I apologize for moving on. If you want to continue to investigate the issue or cannot reproduce I can try to isolate outside of my project? |
No Using groovy dsl
results in
Adding a version results in
|
It looks like Google Maven is not in the search path. Perhaps adding the following to your
If you can also isolate outside of your project and share here that would be great so I can debug it on my end. Thanks |
Installation calls for adding
com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:1.3.0
as a dependency classpath andcom.google.android.libraries.mapsplatform.secrets-gradle-plugin
toplugins
block, this results inWhat has worked for me and is documented here and here is to add
id "com.google.secrets_gradle_plugin" version "0.6.1"
to the plugins dsl and not adding the dependency classpath.The installation instructions are included in Maps SDK Quickstart and don't seem to be working as expected.
To reproduce:
The text was updated successfully, but these errors were encountered: