Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can not resolve org.jetbrains.android

Building an Android Studio Plugin using intellij and gradle as dependency management and trying to specify supported intelliJ IDE's

<depends>org.jetbrains.android</depends>

Issue is org.jetbrains.android is not resolved.

A suggested solution is :

you need to add plugins/android/lib/android.jar to the classpath of your IntelliJ IDEA SDK

can't find plugins/android/lib/android.jar . Any info on how I can locate this ?

like image 671
Nosakhare Belvi Avatar asked Oct 24 '25 14:10

Nosakhare Belvi


1 Answers

Where is plugins/android/lib/android.jar?

accord to Dmitry Jemerov:

The jars of the Android plugin are part of the IntelliJ IDEA Community Edition distribution ("plugins/android/lib" under the installation directory). To use them in your plugin, you need to add them to the classpath of the IntelliJ IDEA SDK, and also add this to your plugin.xml:

<depends>org.jetbrains.android</depends>

For mac user : you can find it in your application content enter image description here

How to the classpath of your IntelliJ IDEA SDK?

enter image description here

enter image description here enter image description here

just find android.jar in this plugin folder and add it to classpath. Dont forget to add org.jetbrains.android to your plugin.xml

like image 140
wanglugao Avatar answered Oct 27 '25 03:10

wanglugao