2014-03-13 2 views
2

Google Analytics documentation에 따라. 라인 아래에 추가해야하지만, '자세한 정보는'오류 : 문자열 유형이 허용되지 않습니다 (값이 'verbose'인 'ga_logLevel'에 있음)

<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> 
+0

ga_logLevel을'bool' 대신'string' 리소스로 변경하면 어떻게됩니까? 이것은 아마 잘못 문서화됩니다. –

답변

2

당신은 문자열로 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> 
관련 문제