https://kotlinlang.org logo
#intellij-plugins
Title
# intellij-plugins
p

Pavel S

02/14/2023, 10:58 AM
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

hfhbd

02/14/2023, 11:28 AM
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
7 Views