java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.Bootstrap

java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication


今天android开发时碰到了这个问题,记录下,share给遇到的同伴

File --> Settings--> Build,Execution,Deployment -->Instant Run ---> uncheck "Enable instant run"  然后重新编译就ok了


当然还有其他的办法:

1/3:

Changing:

classpath 'com.android.tools.build:gradle:2.0.0-alpha1'

By:

classpath 'com.android.tools.build:gradle:1.2.3'

2/3:

Changing:

buildToolsVersion '23.0.2'

By:

buildToolsVersion "21.1.2"

3/3: (in /.idea/gradle.xml)

And:

 name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.8" />

By:

 name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.4" />

你可能感兴趣的:(java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.Bootstrap)