java.lang.IllegalArgumentException: Invalid int: "OS"

google.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Invalid int: "OS"

    at android.os.Parcel.readException()
  2. Android Platform
    TextToSpeech.getVoice
    1. android.os.Parcel.readException(Parcel.java:1544)
    2. android.os.Parcel.readException(Parcel.java:1493)
    3. android.speech.tts.ITextToSpeechService$Stub$Proxy.getVoices(ITextToSpeechService.java:796)
    4. android.speech.tts.TextToSpeech$17.run(TextToSpeech.java:1735)
    5. android.speech.tts.TextToSpeech$17.run(TextToSpeech.java:1728)
    6. android.speech.tts.TextToSpeech$Connection.runAction(TextToSpeech.java:2310)
    7. android.speech.tts.TextToSpeech.runAction(TextToSpeech.java:747)
    8. android.speech.tts.TextToSpeech.runAction(TextToSpeech.java:737)
    9. android.speech.tts.TextToSpeech.getVoice(TextToSpeech.java:1728)
    9 frames
  3. xxx.yyyy
    zzzzzz.onInit
    1. xxx.yyyy.zzzzzz.onInit(Unknown Source)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java:820)
    2. android.speech.tts.TextToSpeech.access$1500(TextToSpeech.java:59)
    3. android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2224)
    4. android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2179)
    5. android.os.AsyncTask.finish(AsyncTask.java:632)
    6. android.os.AsyncTask.access$600(AsyncTask.java:177)
    7. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
    8. android.os.Handler.dispatchMessage(Handler.java:102)
    9. android.os.Looper.loop(Looper.java:145)
    10. android.app.ActivityThread.main(ActivityThread.java:5946)
    10 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
    2 frames