无法解析符号'@ string / default_notification_channel_id'

时间:2017-11-23 01:46:30

标签: java android push-notification firebase-cloud-messaging

我正在尝试在Android上设置Firebase云消息客户端应用。我使用https://github.com/firebase/quickstart-android/tree/master/messaging作为我的实施的指南或模板。当我尝试在https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/main/AndroidManifest.xml处编写代码时,我在以下行中看到Cannot resolve symbol '@string/default_notification_channel_id'错误:

<meta-data
        android:name="com.google.firebase.messaging.default_notification_channel_id"
        android:value="@string/default_notification_channel_id"/>

enter image description here

您对修复此错误有什么想法吗?谢谢。

1 个答案:

答案 0 :(得分:4)

转到res中的字符串资源&gt;值&gt; string.xml或只需单击alt +在资源块下输入并粘贴此代码:

<tbody>
{% for employee in employee_list %}
{% for total in total_employee_task_list %}
    <tr>   
        <td>{{ employee.official_name }}</td>  
        <td>{{ total }}</td>        
    </tr>
    {% endfor %}
{% endfor %}
</tbody>

如果您正在使用快捷方式,请创建字符串资源并粘贴&#34;新闻&#34;价值。