Android Studio升级到3.0后,在华为6.0系统的手机(别的手机正常)上运行app,当EditText获取焦点时,报了以下异常:
java.lang.ref.SoftReference cannot be cast to android.view.inputmethod.InputConnection
com.android.tools.profiler.support.profilers.EventProfiler$InputConnectionHandler.run(EventProfiler.java:330)
java.lang.Thread.run(Thread.java:833)
解决办法:Android Studio -->run-->Edit Configurations
选择Profiling去掉Enable advanced profiling 如下图: