I’m currently developing a plugin for android stud...
# intellij-plugins
m
I’m currently developing a plugin for android studio. I’ve added this config to add plugins in build.gradle.kts
Copy code
intellij {
    pluginName = "MyPlugin"
    version = "201.8743.12"
    type = "IC"
    setPlugins("java", "android", "org.jetbrains.kotlin:1.4.20-release-Studio4.1-1")
}
and these depends tags in plugin.xml
Copy code
<depends>com.intellij.modules.lang</depends>
<depends>com.intellij.modules.java</depends>
<depends>org.jetbrains.android</depends>
<depends>org.jetbrains.kotlin</depends>
Whenever I’m trying to build the plugin, I’m getting the following error messages.
Copy code
The Kotlin (id=org.jetbrains.kotlin, path=~/Projects/AndroidStudioPlugin/build/idea-sandbox/plugins/Kotlin, version=1.4.20-release-Studio4.1-1) plugin requires "com.intellij.modules.androidstudio" plugin to be installed

  The Android (id=org.jetbrains.android, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/201.8743.12/da9095e6ac3581f0463f7ae0ebb155647ca427ad/ideaIC-201.8743.12/plugins/android) plugin requires "Kotlin" plugin to be enabled

  The MyPlugin (id=com.plugin.studio.myplugin, path=~/Projects/AndroidStudioPlugin/build/idea-sandbox/plugins/AndroidStudioPlugin, version=1.0-SNAPSHOT) plugin requires "Android" plugin to be enabled

  The MyPlugin (id=com.plugin.studio.myplugin, path=~/Projects/AndroidStudioPlugin/build/idea-sandbox/plugins/AndroidStudioPlugin, version=1.0-SNAPSHOT) plugin requires "Kotlin" plugin to be enabled
Though the plugin is created successfully and can be install but I fear it might be broken. I also added the following line but same error message. Although adding the following line is marked as error by the IDE.
Copy code
<depends>com.intellij.modules.androidstudio</depends>
h
Have you tried to remove the version of kotlin plugin?
1.4.20-release-Studio4.1-1