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

后端 未结 16 2483
忘了有多久
忘了有多久 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:41

    No need to disable "instant run".
    1. go to project's root using File Explorer
    2. Finish Android Studio(AS)
    3. delete(relocate somewhere) ".gradle" 's folder content
    (to clean some cashs and old artifacts)
    4. in res folder clean off all inappropriate files
    5. launch the AS again
    6. in module's build.gradle set "buildTypes { debug {minifyEnabled true" to false
    (that looks like an error was in my proguard file, kek)

    Sync, compile and run the app again :/

    | improve this answer | |

提交回复
热议问题