Android Studio - missing essential plugins
Answered
I'm encountering an issue while trying to run and build plugin template for Android Studio Canary.
My target Android Studio version is 2024.3.1.1, and I am using version 243.21565.23 of the Android plugin (verified from the [Android Studio Releases List]).
Here's my build.gradle.kts
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "2.1.0"
id("org.jetbrains.intellij.platform") version "2.2.1"
id("org.jetbrains.changelog") version "2.2.1"
id("org.jetbrains.qodana") version "2024.3.4"
id("org.jetbrains.kotlinx.kover") version "0.9.0"
}
.
.
dependencies {
intellijPlatform {
androidStudio("2024.3.1.1")
plugin("org.jetbrains.android:243.21565.23")
bundledPlugins("com.intellij.java")
bundledPlugins("org.jetbrains.kotlin")
pluginVerifier()
zipSigner()
testFramework(TestFrameworkType.Platform)
}
}
Here's my plugin.xml
<idea-plugin>
<id>com.github.emertozd.meerkat</id>
<name>meerkat</name>
<vendor>emertozd</vendor>
<depends>org.jetbrains.android</depends>
<depends>org.jetbrains.kotlin</depends>
<depends>com.intellij.modules.java</depends>
<depends>com.intellij.modules.androidstudio</depends>
</idea-plugin>
When I execute the runIde
Gradle task, I get the following error:
2025-01-04 19:24:02,166 [ 115] WARN - #c.i.i.p.PluginManager - Problems found loading plugins:
The Android (id=org.jetbrains.android, path=~/Projects/meerkat/build/idea-sandbox/AI-AI-243.21565.23.2431.12637205/plugins/android, version=243.21565.23) plugin Plugin 'Android' requires plugin 'org.jetbrains.idea.gradle.dsl' to be installed
The Android SDK Upgrade Assistant (id=com.google.targetsdkversionassistant, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/targetsdkversion-upgrade-assistant) plugin Plugin 'Android SDK Upgrade Assistant' requires plugin 'Android' to be enabled
The Android Design Tools (id=com.android.tools.design, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/design-tools) plugin Plugin 'Android Design Tools' requires plugin 'Android' to be enabled
The meerkat (id=com.github.emertozd.meerkat, path=~/Projects/meerkat/build/idea-sandbox/AI-AI-243.21565.23.2431.12637205/plugins/meerkat, version=0.0.1) plugin Plugin 'meerkat' requires plugin 'Android' to be enabled
The Google Cloud Tools For Android Studio (id=com.google.gct, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/google-cloud-tools-as) plugin Plugin 'Google Cloud Tools For Android Studio' requires plugin 'Android' to be enabled
The Jetpack Compose (id=androidx.compose.plugins.idea, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/android-compose-ide-plugin) plugin Plugin 'Jetpack Compose' requires plugin 'Android' to be enabled
The App Links Assistant (id=com.google.urlassistant, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/url-assistant) plugin Plugin 'App Links Assistant' requires plugin 'Android' to be enabled
The Test Recorder (id=com.google.gct.test.recorder, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/test-recorder) plugin Plugin 'Test Recorder' requires plugin 'Android' to be enabled
The Firebase Services (id=com.google.services.firebase, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/firebase) plugin Plugin 'Firebase Services' requires plugin 'Android' to be enabled
The Firebase Testing (id=com.google.gct.testing, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/firebase-testing) plugin Plugin 'Firebase Testing' requires plugin 'Android' to be enabled
The Git for App Insights (id=com.google.services.git4insights, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/git4insights) plugin Plugin 'Git for App Insights' requires plugin 'Android' to be enabled
The Android NDK Support (id=com.android.tools.ndk, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/android-ndk) plugin Plugin 'Android NDK Support' requires plugin 'Android' to be enabled
The Android APK Support (id=com.android.tools.apk, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/android-apk) plugin Plugin 'Android APK Support' requires plugin 'Android' to be enabled
The Device Streaming (id=com.google.gct.directaccess, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/directaccess) plugin Plugin 'Device Streaming' requires plugin 'Android' to be enabled
The Gemini (id=com.google.tools.ij.aiplugin, path=~/.gradle/caches/8.9/transforms/739ba62aea2c100eaf93db5df7afa096/transformed/android-studio-2024.3.1.1-mac_arm/plugins/gemini) plugin Plugin 'Gemini' requires plugin 'Android' to be enabled
2025-01-04 19:24:02,168 [ 117] WARN - #c.i.i.p.PluginManager - Android Studio (b/365493089, b/202048599): resetting the list of disabled plugins to recover from EssentialPluginMissingException
Additionally, when Android Studio attempts to open, the following error dialog appears:
com.intellij.ide.plugins.EssentialPluginMissingException: Missing essential plugins: com.android.tools.design, org.jetbrains.android
at com.intellij.ide.plugins.PluginManagerCore.checkEssentialPluginsAreAvailable(PluginManagerCore.kt:598)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.kt:671)
at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invokeSuspend(PluginManagerCore.kt:870)
at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invoke(PluginManagerCore.kt)
at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invoke(PluginManagerCore.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
at com.intellij.idea.Main$startApp$2$1$1.span(Main.kt:100)
at com.intellij.diagnostic.CoroutineTracerShim.span$default(CoroutineTracerShim.kt:31)
at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins$intellij_platform_core_impl(PluginManagerCore.kt:868)
at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:403)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
I also tried deleting all disabled_plugins.txt
files locally, but it didn't resolve the issue.
You can check the repository at https://github.com/emertozd/meerkat.
Please sign in to leave a comment.
Please see https://github.com/JetBrains/intellij-platform-gradle-plugin/issues/1843
Hello Yann, thanks for the reply.
Are you sure about that this is related with performancePlugin.jar issue?
Because when i change
androidStudio("2024.3.1.1")
toandroidStudio("2024.2.2.13")
it works successfully. However, when I look at https://plugins.jetbrains.com/docs/intellij/android-studio.html it shouldn't work at all since2024.2.2.13
version is compatible with242.23726.103
not243.21565.23
Additionally, there is no mention of performancePlugin.jar in the error logs.
Thanks
I have the same problem. I use macOS Sonoma 14.3 and IntelliJ IDEA Build #IC-243.22562.218, built on December 18, 2024.
At first I used Gradle IntelliJ Plugin (1.x), and everything worked fine. Then I needed to support Ladybug Feature Drop. I switched to IntelliJ Platform Gradle Plugin (2.x) according to this instruction: https://plugins.jetbrains.com/docs/intellij/android-studio.html#android-studio-releases-listing and I started having problems.
I use these settings and when I launch I get an error:
But if I change to plugin("org.jetbrains.android", "243.22562.218") (which does not match the table: https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html#2024), AS works for me, but my plugin does not work:
Sorry for delay. These issues seem related to https://youtrack.jetbrains.com/issue/MP-7024, please follow it for updates.
Hello Yann, please tell me, I saw that the problem was fixed, but I still don't understand what I need to do to make everything work for me?
My goal is to make my plugin work on the current release version of Android Studio Ladybug Feature Drop (2024.2.2.13).
I add another item to the module generation menu (New Module in Android Studio) and if i use this settings:
I get the same error again:
Please Help!
This will require a new release of IntelliJ Platform Gradle Plugin to incorporate the changes/fixes done in the structure-library which is responsible for locating bundled plugins.
Yann, thanks for the reply.
I need to fix my plugin for Android Studio before February 16, please help.
I used the snapshot version
id("org.jetbrains.intellij.platform") version "2.2.2-SNAPSHOT"
, which is located here: https://oss.sonatype.org/#nexus-search;quick~org.jetbrains.intellij.platform , last updated on February 10. Is there a fix in this snapshot?Because using the snapshot version, I get the same error, please help.
Can I somehow build a version of the plugin with these changes myself: https://github.com/JetBrains/intellij-plugin-verifier/pull/1214 and apply them to my project? Or maybe there is some other solution?
I really ask for help
Hey, Vladimir!
The issue is caused by the malformed `product-info.json` file delivered bundled within the Android Studio.
I've recently contacted the responsible team on Google's side, and they addressed and released the fix starting from Android Studio 243.23654.117.2432.13000375, which is: Android Studio Meerkat Feature Drop Canary 4
On our side, there was a workaround introduced in the Plugin Veridier with https://github.com/JetBrains/intellij-plugin-verifier/pull/1214
The IntelliJ Platform Gradle Plugin relies on artifacts published from the above project, which have yet to be released.
Releasing the IntelliJ Platform Gradle Plugin 2.2.2 (or 2.3.0) by the end of the week is not possible, but I could check if we can speed up the PV release and go for another 2.2.2-SNAPSHOT on Thursday or Friday.
Jakub thanks for the answer!
And does the fix from Google really solve the problem?
Because as I wrote earlier, using these settings:
I get the same error (I posted a detailed log above):
Ok, everything has been released today. Please switch to the IntelliJ Platform Gradle Plugin
2.2.2-SNAPSHOT
.With that version enabled, you can correctly resolve the Android plugin as a bundled one. Note that if you append a version, like
pluginId:version
, it's resolved from JetBrains Marketplace instead!So again – switch to the latest snapshot (see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html#snapshot-release), and use:
Jakub, thank you very much to you and your team! I finally got it working, I am very grateful to you for your help.
The only thing is that I used
bundledPlugin
instead ofplugin
, because when specifyingplugin
, you need to specify the version.