0

I am trying to follow this solution Broadcast Receiver Not Working After Device Reboot in Android, but I get the following error:

No resource found that matches the given name (at 'resource' with value '@xml/my_accessibility_service').

enter image description here

With 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>

Why is it happening? Thanks.

Marc-André
  • 325
  • 2
  • 17
Eleni S.
  • 31
  • 3

1 Answers1

0

I solved the compile error by transferring the file at layout folder and instead or @xml wrote @layout.

Eleni S.
  • 31
  • 3