我需要专业Android开发人员的帮助。 我为android 2.2开发了softkeyboard。我想以LatinIME.git为例。
Eclipse项目是正确的并且可以编译,但是在设备上安装app并设置键盘作为输入法之后(我在2.2上使用HTC Desire)我遇到了运行时错误:
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): FATAL EXCEPTION: main
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): android.view.InflateException: Binary XML file line #43: Error inflating class <unknown>
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at com.android.inputmethod.latin.LatinIME.onCreateCandidatesView(LatinIME.java:410)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.inputmethodservice.InputMethodService.showWindowInner(InputMethodService.java:1317)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java:1285)
10-13 16:31:03.809: ERROR/AndroidRuntime(4917): at android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:388)
... 强制关闭键盘后,但KeyboardView显示错误,请参阅图片:
Latin1.png
Latin2.png
非常感谢。
最诚挚的问候,Vitaliy。
答案 0 :(得分:0)
解析xml时出错:
在线上