【发布时间】:2021-10-05 12:34:34
【问题描述】:
我想在 android studio 中使用 gradle 插件。 我在 build.grade 中添加了类路径:
classpath "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.0"
和
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
我将我的地图 api 密钥放在 local.properties (MAPS_API_KEY = "mykey") 中并在我的清单中使用它:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${MAPS_API_KEY}" />
我的应用程序运行成功,但它不适合我。
【问题讨论】:
标签: android android-studio gradle plugins