-1
我实现SpellCheckerSession.SpellCheckerSessionListener
但实现的方法onGetSentenceSuggestions
采用的是Android 4.0.3和4.0.4造成因为SentenceSuggestionsInfo
的NoClassDefFoundError
。防止java.lang.NoClassDefFoundError崩溃的应用程序在Android中4.0.4和4.0.3 SentenceSuggestionsInfo
@Override
public void onGetSentenceSuggestions(SentenceSuggestionsInfo[] sentenceSuggestionsInfos) {
}
任何理由的downvote? – mjosh
您是否尝试了一些明显的东西,比如为旧API和新API创建2个不同的实现,然后根据运行时API版本(Build class)选择正确的一个......显然,您不能在API 15上使用SentenceSuggestionsInfo,因为它在16 – Selvin
@Selvin我知道我必须做两个不同的Activity的实现,但是有没有解决方法? – mjosh