与元素类型“字符串”关联的属性“可翻译”的值不得包含“ <”字符。错误

时间:2019-11-10 17:41:24

标签: java android layout

<?xml version="1.0" encoding="utf-8"?>
<resources>
        <string name="firebase_url">[YOUR_FIREBASE_URL]</string>
        <!--Your Google Place API from your developers.google.com setting. Take a look on https://developers.google.com/places/android-api/-->
        <string name="AIza..." translatable="false”>[YOUR_GOOGLE_PLACE_API_KEY]</string>

        <!--Your Google Banner Id from your admob setting. Take a look on https://firebase.google.com/docs/admob/android/quick-start-->
        <string name="admob_app_id" translatable="false">[YOUR_GOOGLE_ADMOB_APP_ID]</string>
        <string name="about_banner_ad_unit_id" translatable="false">[YOUR_GOOGLE_ADMOB_UNIT_ID]</string>
        <string name="profile_banner_ad_unit_id" translatable="false">[YOUR_GOOGLE_ADMOB_UNIT_ID]</string>

        <!--Your Google Place API from your developers.facebook.com setting. Take a look on https://developers.facebook.com/apps/{your_app_id}/dashboard/-->
        <string name="facebook_app_id">[YOUR_FACEBOOK_APP_ID]</string>
        <string name="fb_login_protocol_scheme">[YOUR_FACEBOOK_LOGIN_PROTOCOL_SCHEME]</string>

</resources>

1 个答案:

答案 0 :(得分:0)

<string name="AIza..." translatable="false”>[YOUR_GOOGLE_PLACE_API_KEY]</string>

unicode右双引号替换为常规ascii引号"

同样,您似乎已经在期望键的地方输入了一个值。我已从此答案中删除了您的API密钥。考虑更新API密钥,因为它们不再是秘密了。