How can I publish a plugin that supports both Andr...
# intellij-plugins
p
How can I publish a plugin that supports both Android Studio and Intellij Idea? The problem is that Intellij is ahead of Android studio by a number of intellij platform versions, but you have to specify the exact intellij version in
intellij {}
in build.gradle because otherwise it won’t build. If you target AS - the plugin is incompatible with Idea, if you target Idea - it’s incompatible with AS
h
you can specify the min and max idea version in the XML file or using the gradle task:
Copy code
tasks {
    patchPluginXml {
        sinceBuild.set("221")
        untilBuild.set("231.*")
    }
🙌 1