Android LatinIME - FATAL EXCEPTION:InitializeBinaryDictionary

时间:2013-09-19 18:40:30

标签: android

我正在尝试修改Android LatinIME(取自AOSP)。

我从android_src / packages / inputmethod / LatinIME / java获取代码,并使用现有代码中的新项目将其拉入Eclipse。我还包括缺少依赖pacakage inputmethodcommon。

代码编译和构建正常。但是当我在模拟器上部署它并打开键盘时,它会崩溃并出现以下异常 -

FATAL EXCEPTION: InitializeBinaryDictionary
android.content.res.Resources$NotFoundException: File res/raw/main_en.dict from drawable resource ID #0x7f070003
at android.content.res.Resources.openRawResourceFd(Resources.java:1082)
at com.android.inputmethod.latin.BinaryDictionaryGetter.loadFallbackResource(BinaryDictionaryGetter.java:92)
at com.android.inputmethod.latin.BinaryDictionaryGetter.getDictionaryFiles(BinaryDictionaryGetter.java:328)
at com.android.inputmethod.latin.DictionaryFactory.createMainDictionaryFromManager(DictionaryFactory.java:55)
at com.android.inputmethod.latin.DictionaryFactory.createMainDictionaryFromManager(DictionaryFactory.java:83)
at com.android.inputmethod.latin.Suggest$1.run(Suggest.java:115)
Caused by: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
at android.content.res.AssetManager.openNonAssetFdNative(Native Method)
at android.content.res.AssetManager.openNonAssetFd(AssetManager.java:429)
at android.content.res.Resources.openRawResourceFd(Resources.java:1079)

任何人都可以帮我解决这个问题吗?

谢谢!

0 个答案:

没有答案