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

已回答

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

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

0

请先登录再写评论。