java.lang.ClassCastException:java.lang.ref.SoftReference无法强制转换为android.view.inputmethod.InputConnection

时间:2017-12-18 09:47:25

标签: android gradle

  

在线程中:线程[Thread-484,5,main]
  检测到UncaughtException:java.lang.ClassCastException:   java.lang.ref.SoftReference无法强制转换为   android.view.inputmethod.InputConnection at   com.android.tools.profiler.support.profilers.EventProfiler $ InputConnectionHandler.run(EventProfiler.java:330)                                                                                  在java.lang.Thread.run(Thread.java:833)在线程中:   螺纹[线程484,5,主]                                                                              检测到UncaughtException:java.lang.ClassCastException:   java.lang.ref.SoftReference无法强制转换为   android.view.inputmethod.InputConnection                                                                                  在   com.android.tools.profiler.support.profilers.EventProfiler $ InputConnectionHandler.run(EventProfiler.java:330)在   java.lang.Thread.run(Thread.java:833)

这是我的AS设置

 <component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
  <GradleProjectSettings>
    <option name="distributionType" value="DEFAULT_WRAPPED" />
    <option name="externalProjectPath" value="$PROJECT_DIR$" />
    <!--<option name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-4.1" />-->
    <option name="modules">
      <set>
        <option value="$PROJECT_DIR$" />
        <option value="$PROJECT_DIR$/app" />
      </set>
    </option>

这里是设置

classpath 'com.android.tools.build:gradle:3.0.0'`enter code here`
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'

0 个答案:

没有答案