Status Update
Comments
km...@google.com <km...@google.com>
ga...@google.com <ga...@google.com>
ak...@google.com <ak...@google.com> #2
As a workaround I'll suggest to try to delete the AS
Windows: %APPDATA%\Google\AndroidStudio<VERSION>
MacOs: ~/Library/Application\ Support/Google/AndroidStudio<VERSION>
Linux: ~/.config/Google/AndroidStudio<VERSION>
ga...@google.com <ga...@google.com> #3
A more targeted workaround is to delete just the disabled_plugins.txt
file under the configuration directory; see
jf...@block.xyz <jf...@block.xyz> #4
Renaud, FYI this issue is no longer expected to be related to the Kotlin plugin in the common case, because ag/24807254 ensures the Kotlin IDE plugin stays enabled.
These reports seem a lot more common than usual recently, we should figure out why.
Meanwhile, the upstream "root cause" bug is still open:
bi...@google.com <bi...@google.com> #5
For reference, here are the plugins currently required by the Android plugin:
com.android.tools.idea.smali
com.intellij.gradle
com.intellij.properties
intellij.webp
JUnit
org.intellij.groovy
org.intellij.intelliLang
org.jetbrains.kotlin
org.jetbrains.plugins.gradle
org.toml.lang
Disabling any of these plugin may break Android Startup startup.
JetBrains has the same problem in PyCharm (
jf...@block.xyz <jf...@block.xyz> #6
Starting in Ladybug.2 Canary4, this problem will be mitigated in two ways:
- All dependencies of the Android plugin will be marked 'essential', meaning they cannot be disabled.
- As a last resort, if the IDE fails to start due to "missing essential plugins", the list of disabled plugins will be cleared automatically.
We may try to backport mitigation #2 into Ladybug.1 Patch 1 as well.
In the meantime, for older versions, the easiest workaround is to delete
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 4
- Android Gradle Plugin 8.8.0-alpha04
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
je...@google.com <je...@google.com> #8
The fixes for this issue are now also available in:
- Android Studio Ladybug | 2024.2.1 Patch 1
- Android Gradle Plugin 8.7.1
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
hu...@google.com <hu...@google.com> #9
Hi Jerome, it looks like the change you mentioned in
an...@google.com <an...@google.com> #11
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 2
- Android Gradle Plugin 8.8.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
We use a gradle conventions plugin to apply other plugins such as AGP, KGP, etc. which enforces the same version for all projects, so the version check doesn't provide much benefit to our build. It does however use a significant amount of memory to run due to its multiple uses of , so we disable it by setting
allprojects { }
ext["AGP_INTERNAL__MIN_PLUGIN_VERSION_CHECK_STARTED"] = true
in our rootbuild.gradle
.We currently use AGP 7.3.1, but this behavior is unchanged in all successive versions of AGP.
Cross-project configuration is a gradle anti-pattern and we have lint checks in our builds to explicitly forbid this due to the relatively severe performance consequences it has for our build.
The
AGP_INTERNAL__MIN_PLUGIN_VERSION_CHECK_STARTED
"hack" works but is a potentially fragile workaround as it is clearly not a "public" configuration option. Could AGP provide a formal property we could set to disable the minimum version checks? (e.g.android.disableMinimumPluginVersionCheck=true
)