Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The IDE can't open library dependency dialog (Maven dependency)

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 ??

like image 819
Maher Ismaail Avatar asked Jun 28 '15 08:06

Maher Ismaail


People also ask

Why Maven dependencies are not showing in IntelliJ?

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.


2 Answers

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

like image 86
Maher Ismaail Avatar answered Oct 17 '22 18:10

Maher Ismaail


I used @Maher Answer and tried to show graphically

Step 1: In android studio Open Tools > Android > Sdk Manager

enter image description here

Step 2: Now click or Plugin > Maven Integration and mark checked

enter image description here

like image 6
Naveed Ahmad Avatar answered Oct 17 '22 16:10

Naveed Ahmad