Klein_Moretti2001
Klein_Moretti2001

Reputation: 89

google map api build failed

* Exception is:

java.lang.NoClassDefFoundError: com/android/build/api/variant/AndroidComponentsExtension at com.google.android.libraries.mapsplatform.secrets_gradle_plugin.SecretsPlugin.apply(SecretsPlugin.kt:43) at com.google.android.libraries.mapsplatform.secrets_gradle_plugin.SecretsPlugin.apply(SecretsPlugin.kt:33)

Upvotes: 6

Views: 975

Answers (1)

user3525542
user3525542

Reputation: 11

I solved that error, downgrading google secret plugin classpath from 2.0.0 to 1.3.0

        classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:1.3.0")        

Upvotes: 1

Related Questions