【问题标题】:No resources found that matches at AndroidManifest.xml在 AndroidManifest.xml 中找不到匹配的资源
【发布时间】:2018-12-11 14:42:37
【问题描述】:

我正在尝试遵循此解决方案Broadcast Receiver Not Working After Device Reboot in Android,但出现以下错误:

未找到与给定名称匹配的资源(位于“资源”,值为“@xml/my_accessibility_service”)。

使用 my_accessibility_service.xml :

<?xml version="1.0" encoding="utf-8" ?>
<accessibility-service
  xmlns:android="http://schemas.android.com/apk/res/android"
    android:packageNames="myapp"
    android:accessibilityFeedbackType="feedbackSpoken"
    android:description="@string/service_desc"
    android:notificationTimeout="100">
</accessibility-service>

为什么会这样? 谢谢。

【问题讨论】:

    标签: xamarin.forms android-manifest accessibilityservice


    【解决方案1】:

    我通过在布局文件夹中传输文件解决了编译错误,而不是@xml写了@layout。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-28
      • 1970-01-01
      • 1970-01-01
      • 2016-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多