Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication ?Android

后端 未结 16 2484
忘了有多久
忘了有多久 2020-11-28 02:43

I updated my Android Studio to version 2.0. But I had a problem, I don\'t know why?

The important error info:

Unable to instantiate applicati

16条回答
  •  春和景丽
    2020-11-28 03:42

    I had the same error after trying to use the 2.0.

    I solved it by reverting some gradle changes:

    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:

    By:

    I don't know what line is exactly the origin of the error, but with this three changes it was solved.

    Hope that it helps you :)

提交回复
热议问题