How to build Android Studio plugin to support multiple Android Studio versions

Answered

We’ve developed a plugin and specified the version in the plugin build.gradle file.

intellij {
    version = 'AI-203.7717.56'
    type = 'IC'
    plugins = ['android']
}

With this build configuration, the plugin can only be built and installed/run on a specific Android Studio version.

Is there a way to specify a version number in the plugin build.gradle file to build a single version of the plugin that runs on different versions of Android Studio?

Thanks,
Hai Le

0
1 comment

Have you considered using sinceBuild/untilBuild? See the Build Number Ranges and Patching the Plugin Configuration File articles in the IntelliJ SDK Docs.

0

Please sign in to leave a comment.