Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 845
Ahmad2001 Avatar asked Nov 14 '22 18:11

Ahmad2001


1 Answers

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")        
like image 140
user3525542 Avatar answered Jan 01 '23 12:01

user3525542