gpt4 book ai didi

android manifestPlaceholders - 如何使用 bool 值

转载 作者:搜寻专家 更新时间:2023-11-01 08:25:49 26 4
gpt4 key购买 nike

我创建的 list 占位符如下所示:

manifestPlaceholders = [appDrawerName: "Staging",canExport:"true"]

我正在尝试使用它来设置 Activity 的以下导出属性:

<activity android:name=".UI.product.ProductDetailsHostActivity"
android:theme="@style/NoActionBarTheme"
android:exported="${canExport}"/>

但是我得到以下错误:

enter image description here关于如何解决这个问题的任何想法?我尝试使用不带引号的 canExport:true 但结果相同。

顺便说一句,第一个占位符工作正常。

最佳答案

您必须提供一个 bool 值而不是 manifestPlaceholders 数组中的字符串。

改变这个

manifestPlaceholders = [appDrawerName: "Staging",canExport:"true"]

manifestPlaceholders = [appDrawerName: "Staging",canExport:true]

注意 bool 值 true 而不是字符串“true”

关于android manifestPlaceholders - 如何使用 bool 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45343733/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com