In lollipop there is a new accessibility event called TYPE_WINDOWS_CHANGED but when I use it in my xml configuration file, I receive error from Android Studio. It it possible to add it only via code? Am I missing something?
Asked
Active
Viewed 879 times
1
-
What version of Android Studio are you using? What version of the Gradle for Android plugin are you using? What is the error? – CommonsWare Jun 01 '15 at 12:34
-
@CommonsWare Android Studio 1.2.1.1, Gradle 1.2.3 and the error is "Cannot resolve flag" – greywolf82 Jun 01 '15 at 12:36
-
@CommonsWare My fault, I meant TYPE_WINDOWS_CHANGED. – greywolf82 Jun 01 '15 at 12:38
-
What is your `compileSdkVersion`? It need to be 21 or higher to resolve things added in API Level 21. – CommonsWare Jun 01 '15 at 12:39
-
compileSdkVersion 22, the problem is the xml attribute because I can see the flag in the code – greywolf82 Jun 01 '15 at 12:39
-
Hmmmm... feels like a bug then. I don't see anything filed on it. If you can upload the configuration file and a description of the symptoms to https://b.android.com, the tools team is pretty good about getting that sort of stuff fixed. – CommonsWare Jun 01 '15 at 12:41
-
do you think is a bug of android studio? can you repost the link? It seems broken – greywolf82 Jun 01 '15 at 12:43
-
"do you think is a bug of android studio?" -- that or the Gradle for Android plugin. I am not completely clear on where these sorts of Lint checks come from. And sorry, try http://b.android.com. – CommonsWare Jun 01 '15 at 12:44
-
any other event can i use when window is opening? @CommonsWare. – Happy Jun 25 '15 at 06:21