Missing essential plugins: com.android.tools.design, org.jetbrains.android
Answered
Hello,
I'm currently developing an Android Studio plugin using the template available at https://github.com/JetBrains/intellij-platform-plugin-template. My plugin requires com.android.ddmlib
, so I've added platformPlugins=org.jetbrains.android:242.21829.142
to gradle.properties
. You can see all the changes I've made in this [commit](https://github.com/mgoyanes/AASTestPlugin/commit/c5e8b751d1a890890816489c5760f36ba1374a48).
However, when I try to run the plugin, I encounter the following error:
com.intellij.ide.plugins.EssentialPluginMissingException: Missing essential plugins: com.android.tools.design, org.jetbrains.android
Here is the full stack trace:
> Task :runIde
2024-09-26 09:00:25,349 [ 310] WARN - #c.i.i.p.PluginManager - Problems found loading plugins:
The Android (id=org.jetbrains.android, path=/Volumes/Goyanes/Miguel/Random Code/Plugin/ASTestPlugin/build/idea-sandbox/AI-AI-242.21829.142.2422.12395834/plugins/android, version=242.21829.142) plugin Plugin 'Android' requires plugin 'org.jetbrains.idea.gradle.dsl' to be installed
The Android SDK Upgrade Assistant (id=com.google.targetsdkversionassistant, path=~/Applications/Android Studio.app/Contents/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=~/Applications/Android Studio.app/Contents/plugins/design-tools) plugin Plugin 'Android Design Tools' requires plugin 'Android' to be enabled
The Jetpack Compose (id=androidx.compose.plugins.idea, path=~/Applications/Android Studio.app/Contents/plugins/android-compose-ide-plugin) plugin Plugin 'Jetpack Compose' requires plugin 'Android' to be enabled
The AASTestPlugin (id=com.github.mgoyanes.aastestplugin, path=/Volumes/Goyanes/Miguel/Random Code/Plugin/ASTestPlugin/build/idea-sandbox/AI-AI-242.21829.142.2422.12395834/plugins/AASTestPlugin, version=0.0.1) plugin Plugin 'AASTestPlugin' requires plugin 'Android' to be enabled
The App Links Assistant (id=com.google.urlassistant, path=~/Applications/Android Studio.app/Contents/plugins/url-assistant) plugin Plugin 'App Links Assistant' requires plugin 'Android' to be enabled
The Test Recorder (id=com.google.gct.test.recorder, path=~/Applications/Android Studio.app/Contents/plugins/test-recorder) plugin Plugin 'Test Recorder' requires plugin 'Android' to be enabled
The Firebase Services (id=com.google.services.firebase, path=~/Applications/Android Studio.app/Contents/plugins/firebase) plugin Plugin 'Firebase Services' requires plugin 'Android' to be enabled
The Firebase Testing (id=com.google.gct.testing, path=~/Applications/Android Studio.app/Contents/plugins/firebase-testing) plugin Plugin 'Firebase Testing' requires plugin 'Android' to be enabled
The Git for App Insights (id=com.google.services.git4insights, path=~/Applications/Android Studio.app/Contents/plugins/git4insights) plugin Plugin 'Git for App Insights' requires plugin 'Android' to be enabled
The Google Cloud Tools For Android Studio (id=com.google.gct, path=~/Applications/Android Studio.app/Contents/plugins/google-cloud-tools-as) plugin Plugin 'Google Cloud Tools For Android Studio' requires plugin 'Android' to be enabled
The Android NDK Support (id=com.android.tools.ndk, path=~/Applications/Android Studio.app/Contents/plugins/android-ndk) plugin Plugin 'Android NDK Support' requires plugin 'Android' to be enabled
The Android APK Support (id=com.android.tools.apk, path=~/Applications/Android Studio.app/Contents/plugins/android-apk) plugin Plugin 'Android APK Support' requires plugin 'Android' to be enabled
The Device Streaming (id=com.google.gct.directaccess, path=~/Applications/Android Studio.app/Contents/plugins/directaccess) plugin Plugin 'Device Streaming' requires plugin 'Android' to be enabled
The Gemini (id=com.google.tools.ij.aiplugin, path=~/Applications/Android Studio.app/Contents/plugins/gemini) plugin Plugin 'Gemini' requires plugin 'Android' to be enabled
**Start Failed**
Internal error
com.intellij.ide.plugins.EssentialPluginMissingException: Missing essential plugins: com.android.tools.design, org.jetbrains.android
at com.intellij.ide.plugins.PluginManagerCore.checkEssentialPluginsAreAvailable(PluginManagerCore.kt:617)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.kt:685)
at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invokeSuspend(PluginManagerCore.kt:875)
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:88)
at com.intellij.diagnostic.CoroutineTracerShim.span$default(CoroutineTracerShim.kt:31)
at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins$intellij_platform_core_impl(PluginManagerCore.kt:874)
at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:385)
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)
-----
JRE: 21.0.3+-79915917-b509.11 aarch64 (JetBrains s.r.o.)
/Users/miguelgoyanes/Applications/Android Studio.app/Contents/jbr/Contents/Home
> Task :runIde FAILED
Execution failed for task ':runIde'.
> Process 'command '/Users/miguelgoyanes/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java'' finished with non-zero exit value 3
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 22s
13 actionable tasks: 3 executed, 10 up-to-date
Configuration cache entry stored.
Could you please help me resolve this issue and guide me on how to add the missing plugins to my build?
Please sign in to leave a comment.
Your GH repository is not publicly available
Yann Cebron Sorry. I think it is now available.
Please follow example setup shown here for targeting AS: https://plugins.jetbrains.com/docs/intellij/android-studio.html#intellij-platform-gradle-plugin-2x
Thank you but added the minimum details (https://github.com/mgoyanes/AASTestPlugin/commit/25ec202470f58c29f9d9218cdcfed15396eb720f) but still got an error:
Hello.
New update. Changed from
plugin("org.jetbrains.android:242.21829.142")
toplugin("org.jetbrains.android:243.16718.32")
and it works as expected.Unfortunately, hit on another problem. Need to use
com.intellij.psi.PsiClass
so I've addedplatformBundledPlugins =com.intellij.java
togradle.properties
and<depends>com.intellij.java</depends>
topluging.xml
When I runIde, it gives:
https://github.com/mgoyanes/AASTestPlugin/commit/a620a90093e91261fa0f54dd915e5a607cccdc71
Hello.
It seems that it is an issue with the Android Studio version used. Went through the lists available in https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html#2024 from every version from 2024.2.2.4 until reached out to version
androidStudio("2024.1.3.3")
which finally worked.Issue with performanceTesting.jar is known https://github.com/JetBrains/intellij-platform-gradle-plugin/issues/1738