I am testing my plugin, which takes project having Android facets and do its analysis on the project. While setting up tests, I have added files to the module and tried to check if the project is having Android facets. The result was false.
So I created FacetManager instance
val facetManager = FacetManager.getInstance(firstModule!!)
And tried to create AndroidFacet
val facetType = AndroidFacetType()
val facet = facetManager.createFacet(facetType, facetType.defaultFacetName, null)
But error was Cannot find facet by id 'android'
So, I added org.jetbrains.android dependency in Xml file. I am getting following error:
ERROR: Problems found loading plugins:<p/>Plugin "Gradle" was not loaded: required plugin "org.intellij.groovy" not installed.<p/>Plugin "Android Support" was not loaded: required plugin "JUnit" not installed.<p/>Plugin "KilaCrypto" was not loaded: required plugin "JUnit" not installed.<p/><br><a href="disable">Disable not loaded plugins</a><p/><a href="edit">Open plugin manager</a>