I have created a TTS engine based on Flite for Android which works well on all versions below 21.
But when I run it in an Android Lollipop emulator, in the Text-to-Speech Settings screen, the option for reading a sample text is disabled and when I press the Settings button next to my TTS, the Settings crashes! However, the TTS works fine when used from other apps.