google map api build failed
Asked Answered
U

1

6
* 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)

Unceasing answered 2/10, 2021 at 7:44 Comment(0)
H
1

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")        
Heavy answered 26/12, 2021 at 15:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.