How to setup plugin project Gradle configuration to target Android Studio and specific Android plugin version

Answered

Follow up from https://intellij-support.jetbrains.com/hc/en-us/community/posts/7436180939154-Cannot-find-symbol-dependencyResolutionManagement-in-GradleSettingsModel.

I have setup my build.gradle like this:

intellij {
version.set("2021.2")
type.set("IC")
plugins.set(listOf("android", "java"))
}

Can the version of the Android plugin be specified or my plugin only gets what is bundled with Android Studio "2021.2"?

1 comment
Comment actions Permalink

Hi Hugo,

If you specify the dependency on a bundled plugin, you will get what is bundled.

Please also note that you can use `type.set("AI")` to get Android Studio configured as the project IDE, see https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-type

0

Please sign in to leave a comment.