android-methods-profiler icon indicating copy to clipboard operation
android-methods-profiler copied to clipboard

Error while extracting project package in AS 212

Open Grigory-Rylov opened this issue 3 years ago • 0 comments

val applicationId = AndroidModuleModel.get(facet)?.applicationId

produces :

java.lang.IncompatibleClassChangeError: Method 'com.android.tools.idea.gradle.project.model.AndroidModuleModel com.android.tools.idea.gradle.project.model.AndroidModuleModel.get(org.jetbrains.android.facet.AndroidFacet)' must be InterfaceMethodref constant
	at com.github.grishberg.profiler.androidstudio.PluginProjectInfo.createPackageName(PluginProjectInfo.kt:39)
	at com.github.grishberg.profiler.androidstudio.PluginProjectInfo.<init>(PluginProjectInfo.kt:25)
	at com.github.grishberg.profiler.androidstudio.ShowProfilerAction.actionPerformed(ShowProfilerAction.kt:28)
	at com.github.grishberg.profiler.androidstudio.ShowProfilerAction.actionPerformed(ShowProfilerAction.kt:20)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:240)
...

Grigory-Rylov avatar Apr 11 '22 08:04 Grigory-Rylov