Android Studio can't open project

2019-07-27 22:57发布

问题:

I've recently get update notification of android studio 2.3, after the update it's not opening any project and throwing error:

[plugin: com.darkklord.gradle.metric.core]

after downgrading and reinstalling i still have this issue, can anyone please help me on this topic ?

回答1:

Download latest plugin from here: https://plugins.jetbrains.com/plugin/9197-android-gradle-metrics--checkstyle

  • Install Plugin manually from disk.
  • Restart Android Studio (The error will still occur)
  • Remove plugin in IDE.
  • Restart

You might also uninstall the refrenzed plugins Checkstyle and PMD



回答2:

change build:gradle plugin to:

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

(in app gradle file)



回答3:

You need to change your dependency

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