question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NoClassDefFoundError AndroidFrameworkDetector

See original GitHub issue

What happened

Just open intelij Idea on an existing project after I starting my pc…

Version information

IntelliJ IDEA 2020.2.3 • Flutter plugin io.flutter 51.0.3-dev.4 • Dart plugin 202.7319.5

Error getting Flutter sdk information.

Exception

null

java.lang.NoClassDefFoundError: org/jetbrains/android/facet/AndroidFrameworkDetector
	at io.flutter.ProjectOpenActivity.excludeAndroidFrameworkDetector(ProjectOpenActivity.java:93)
	at io.flutter.ProjectOpenActivity.runActivity(ProjectOpenActivity.java:62)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:300)
	at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runPostStartupActivities$4(StartupManagerImpl.java:226)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processWithPluginDescriptor(ExtensionPointImpl.java:298)
	at com.intellij.openapi.extensions.ExtensionPointName.processWithPluginDescriptor(ExtensionPointName.java:158)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:220)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:254)
	at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$projectOpened$1(StartupManagerImpl.java:154)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.android.facet.AndroidFrameworkDetector PluginClassLoader[PluginDescriptor(name=Flutter, id=io.flutter, path=C:\Users\engue\AppData\Roaming\JetBrains\IntelliJIdea2020.2\plugins\flutter-intellij-kokoro, version=51.0.3-dev.4)] com.intellij.ide.plugins.cl.PluginClassLoader@6be4cf0
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:95)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 21 more

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
EArminjoncommented, Nov 1, 2020

Seems to be fixed with the new plugin version

0reactions
EArminjoncommented, Mar 9, 2021

I face this problem. then I remove AndroidStudio cache, just do it.

rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/Google/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/.gradle
rm -Rf ~/.android
rm -Rf ~/Library/Android*

It’s an old issue, upgrading intellij with then new version fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed resolution of: Landroid/support/v4/os/BuildCompat ...
NoClassDefFoundError in Java comes when Java Virtual Machine is not able to find a particular class at runtime which was available at compile...
Read more >
NoClassDefFoundError - Android Developers
java.util.concurrent.atomic ... junit.framework ... Public constructors. NoClassDefFoundError(). Constructs a NoClassDefFoundError with no detail message.
Read more >
Weird Android junit test failure java.lang.NoClassDefFoundError
Solution · Click File menu. · Click Project Structure. · Click SDK Location in left side navigation. · Set JDK Location to output...
Read more >
NoClassDefFoundError - PSPDFKit
If you're getting java.lang.NoClassDefFoundError inside com.android.internal.os.ZygoteInit.main , this usually means the native library couldn't be loaded.
Read more >
Error:java.lang.ClassNotFoundException: com.android.tools ...
ClassNotFoundException : com.android.tools.lint.detector.api.Detector$UastScanner thats the error but with a successful apk build.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found