Since I update Android Studio to 3.5, when I launch a Run to build and deploy my app, my custom accessibility service is turn off automatically (not a crash, just turn off within the settings).
Can you help me please ?
Since I update Android Studio to 3.5, when I launch a Run to build and deploy my app, my custom accessibility service is turn off automatically (not a crash, just turn off within the settings).
Can you help me please ?
What's happening is that Studio force-stops the service before reinstalling the new version. I don't think it's possible to disable that unfortunately.
Command-line installation doesn't follow the same process, so it doesn't disable the service.
In my case, Android Studio was disabling the service every time I hit the run button.
When I tried opening the app manually, it worked!
This issue is pretty old but not closed yet. You can upvote and comment here https://issuetracker.google.com/issues/140056246