After upgrade Android Studio to 1.2.1.1 Or later , The IDE can't open library dependency dialog (Maven dependency)
it gives this error :
Could not initialize class com.android.tools.idea.structure.gradle.MavenDependencyLookupDialog
is it a bug ,, or some thing Wrong ??
If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.
I Found it Finally , in new versions of android studio
you should activate the Maven box from :
new SDK Manager >> Plugins >> Maven Integration >> check this box
I used @Maher Answer and tried to show graphically
Step 1: In android studio Open Tools > Android > Sdk Manager
Step 2: Now click or Plugin > Maven Integration and mark checked
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With