0

错误消息
The constructor TextToSpeech(SQLiteExample, SQLiteExample) is undefined 04-16 04:06:19.860: E/AndroidRuntime(1728): Caused by: java.lang.ClassCastException: com.sql.SQLiteExample error line

myTts = new TextToSpeech(this,  this);

在 onCreate 方法中

4

1 回答 1

0

错误的是,您没有在TextToSpeech.as 文档中传递正确的参数

TextToSpeech (Context context, TextToSpeech.OnInitListener listener)

context:此实例正在运行的上下文。

listener : TextToSpeech.OnInitListener 将在 TextToSpeech 引擎初始化时调用。

于 2012-04-14T15:30:39.520 回答