Search code examples
androidxmlservicecompatibility

Android - XML Accessbility Service won't build


I have written a very simple accessibility service, the code works fine without an xml file defined for metadata but I want to add the xml file for compatibility purposes.

<?xml version="1.0" encoding="utf-8"?>
<accessibility-service
    xmlns:android="http://schemas.android.com/apk/res/android" 
     android:accessibilityEventTypes="typeNotificationStateChanged"
     android:notificationTimeout="100"
     android:description=""
/>

However the error I'm getting is none of the 'android:' resources are defined and also I'm not allowed that description. Although the description happens regardless of what I type or in what string asset I prove.

Anyone have any ideas..


Solution

  • Thanks for the suggested solutions. Turns out that you need to have your target build at 14 for eclipse to accept that xml file.