ใช้ ispeech.org TTS ในแอป Android

ฉันมีปัญหาในการใช้โปรแกรม ispeech.org TTS กับแอป Android ของฉัน

แอปขัดข้องเมื่อ:

java.lang.NoClassDefFoundError: org.ispeech.iSpeechFramework
        at            org.ispeech.SpeechSynthesis.showProcessingDialog(SpeechSynthesis.java:276)
        at org.ispeech.SpeechSynthesis.speak(SpeechSynthesis.java:352)

ฉันได้เพิ่มบรรทัดนี้ใน AndroidManifest.xml:

<activity android:name="org.ispeech.iSpeechFramework" android:configChanges="orientation|keyboard" android:theme="@android:style/Theme.Translucent"/>

อย่างไรก็ตาม IntelliJ บ่นว่า

"'org.ispeech.iSpeechFrameworkd' ไม่สามารถมอบหมายให้กับ 'app.android.Activity'"

ใครสามารถช่วยฉันเข้าใจสิ่งที่ฉันทำผิด?


person Arch Botmaster    schedule 15.03.2014    source แหล่งที่มา
comment
iSpeechFramework ไม่ใช่กิจกรรมของ Android ดังนั้นจึงไม่อยู่ในรายการของคุณเช่นนั้น   -  person Gabe Sechan    schedule 15.03.2014


คำตอบ (1)


org.ispeech.iSpeechFramework ไม่ใช่กิจกรรม ดังนั้นคุณไม่จำเป็นต้องเพิ่มลงในรายการของคุณ NoClassDefFoundError มักจะเป็นข้อผิดพลาดของเส้นทางตัวเชื่อมโยง/บิลด์ ลองนำขวดออกแล้วเพิ่มตามคำแนะนำในคำตอบของ StackOverflow นี้

หากช่วยได้ นี่คือที่คุณจะแก้ไขใน Eclipse

person cyberpirate    schedule 17.03.2014