防止java.lang.NoClassDefFoundError在Android 4.0.4和4.0.3中为SentenceSuggestionsInfo崩溃应用程序

时间:2017-03-08 12:01:53

标签: android

我正在实施SpellCheckerSession.SpellCheckerSessionListener,但由于Android 4.0.3和4.0.4中的onGetSentenceSuggestions,已实施的方法NoClassDefFoundError导致SentenceSuggestionsInfo

@Override
public void onGetSentenceSuggestions(SentenceSuggestionsInfo[] sentenceSuggestionsInfos) {

}

1 个答案:

答案 0 :(得分:0)

以下是如何处理未被捕获的NoClassDefFoundError

try {
   // your current code
}catch(NoClassDefFoundError e) {
   // handle problem
}