I'm a noob in Android dev.
I'm using TextToSpeech and it works well on several platforms, except on one particular phone (Running android 4.4.2).
There the instantiation of TTS gives a null-pointer exception:
private TextToSpeech mTTS;
// ...
mTTS = new TextToSpeech(this, mTTSInitListener);
The Sdk version used is the minimum specified: 19 (and to my nuderstanding, TTS was added in API level 4 (thus Android 1.6)
android {
compileSdkVersion 21
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 19
targetSdkVersion 21
applicationId "myapp"
versionCode 73
versionName "1.1.0"
Question is: what can make TTS unavailable / non-instantiable ?
thx