加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

strings.xml中的Android`templateMergeStrategy`

发布时间:2020-12-16 07:49:24 所属栏目:百科 来源:网络整理
导读:templateMergeStrategy属性在 Android资源中的含义是什么? 例如在Google Maps API密钥文件中 string name="google_maps_key" templateMergeStrategy="preserve" translatable="false" AIza.......some...secret...key.../string 我本来期望一个简单的谷歌(
templateMergeStrategy属性在 Android资源中的含义是什么?

例如在Google Maps API密钥文件中

<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">
    AIza.......some...secret...key...
</string>

我本来期望一个简单的谷歌(或duckduckgo)搜索给我结果,但不幸的是它似乎只给了我谷歌地图API问题.

不幸的是,该部门也缺乏Android Developer Docs on “String Resources”.

从 change log起

Uses this to overwrite the instructions in the Google Maps template.
Subsequent runs of the template always update the instructions with
the user’s current keystore credentials.

Also changed the Maps instructions to deep link into a Google developer console flow,which allows for easier key generation.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读