Strange android plugin dependency behavior
Answered
Hi. I've encountered strange behavior of android plugin dependencies. I am doing a little experiment with Compose and need to use some classes from the package com.android.tools.idea.compose.preview.*. They are available in the project if I set an older version of IDEA in the plugin configuration
intellij {
version.set("221.6008.13")
type.set("IC")
plugins.set(listOf("android"))
}
But if I set a newer version , they become unavailable.
intellij {
version.set("2022.2.1")
type.set("IC")
plugins.set(listOf("android"))
}
I see that they are in the sources published on GitHub. Can you help me understand what's going on and how can I access these classes in the new version of IDEA?
Please sign in to leave a comment.
Hi,
The mentioned classes were moved to
com.android.tools.design
plugin, so you have to add the dependency to it.Karol Lewandowski Thanks a lot. This is what is needed. I have already spent many hours solving this problem.