gpt4 book ai didi

android - 错误 : String types not allowed (at 'ga_logLevel' with value 'verbose' )

转载 作者:行者123 更新时间:2023-11-29 00:22:04 26 4
gpt4 key购买 nike

根据 Google Analytics documentation .必须添加下面的行,但 eclipse 不会编译,因为 'verbose' 不是 bool

<bool name="ga_logLevel">verbose</bool>

有人知道如何解决这个问题吗?

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="https://schemas.android.com/tools" tools:ignore="TypographyDashes">

<!-- Replace placeholder ID with your tracking ID -->
<string name="ga_trackingId">XXXXXX</string>

<!-- Enable Activity tracking -->
<bool name="ga_autoActivityTracking">true</bool>

<!-- Enable automatic exception tracking -->
<bool name="ga_reportUncaughtExceptions">true</bool>
<!-- <bool name="ga_debug">false</bool> -->
<bool name="ga_logLevel">verbose</bool>

</resources>

最佳答案

您必须将 ga_logLevel 声明为字符串。

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="https://schemas.android.com/tools" tools:ignore="TypographyDashes">

<!-- Replace placeholder ID with your tracking ID -->
<string name="ga_trackingId">XXXXXX</string>

<!-- Enable Activity tracking -->
<bool name="ga_autoActivityTracking">true</bool>

<!-- Enable automatic exception tracking -->
<bool name="ga_reportUncaughtExceptions">true</bool>
<!-- <bool name="ga_debug">false</bool> -->
<string name="ga_logLevel">verbose</string>

</resources>

关于android - 错误 : String types not allowed (at 'ga_logLevel' with value 'verbose' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22391968/

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