203.5981.155 AndroidModuleModel getSelectedVariant NoSuchMethodError
Answered
Module[] modules = ModuleManager.getInstance(project).getModules();
AndroidModuleModel module = AndroidModuleModel.get(modules[0]);
IdeVariant variant = module.getSelectedVariant();
java.lang.NoSuchMethodError: 'com.android.ide.common.gradle.model.IdeVariant com.android.tools.idea.gradle.project.model.AndroidModuleModel.getSelectedVariant()'
I can see it in the.code, IDEA shows me it in the unzipped sources, is this a bug have I missed a step?
Please sign in to leave a comment.
Please make sure your target IDE matches the expected AS version(s) https://plugins.jetbrains.com/docs/intellij/android-studio.html#android-studio-releases-listing