Internal error at starting android studio after update - android-studio

I'm using ubuntu 20.04
I updated android studio to version 4.1. after that I can't start android studio and shows the following error.
Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.ExceptionInInitializerError
at com.a.b.b.d.K.b(K.java:260)
at com.a.b.b.a.am.c(am.java:297)
at com.a.b.b.a.am.a(am.java:119)
at com.a.b.b.a.ai.a(ai.java:56)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at com.intellij.ui.scale.JBUIScale.lambda$static$0(JBUIScale.java:76)
at com.intellij.openapi.util.AtomicNotNullLazyValue$1.compute(AtomicNotNullLazyValue.java:59)
at com.intellij.openapi.util.AtomicNotNullLazyValue.getValue(AtomicNotNullLazyValue.java:37)
at com.intellij.ui.scale.JBUIScale.lambda$static$1(JBUIScale.java:155)
at com.intellij.util.LazyInitializer$MutableNotNullValue.initialize(LazyInitializer.java:113)
at com.intellij.util.LazyInitializer$NullableValue.get(LazyInitializer.java:41)
at com.intellij.util.LazyInitializer$MutableNotNullValue.get(LazyInitializer.java:102)
at com.intellij.ui.scale.JBUIScale.lambda$static$2(JBUIScale.java:173)
at com.intellij.util.LazyInitializer$MutableNotNullValue.initialize(LazyInitializer.java:113)
at com.intellij.util.LazyInitializer$NullableValue.get(LazyInitializer.java:41)
at com.intellij.util.LazyInitializer$MutableNotNullValue.get(LazyInitializer.java:102)
at com.intellij.ui.scale.JBUIScale.scale(JBUIScale.java:297)
at com.intellij.util.ui.JBInsets.create(JBInsets.java:41)
at com.intellij.util.ui.UIUtil.getRegularPanelInsets(UIUtil.java:1356)
at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:455)
... 9 more
-----
JRE 1.8.0_242-release-1644-b3-6222593 amd64 by JetBrains s.r.o
What should I do to fix this? I tried removing plugins. But it didn't work.

Deleting of:
~/.local/share/Google/AndroidStudio4.1,
~/.config/Google/AndroidStudio4.1,
~/.cache/Google/AndroidStudio4.1
helped me to run AndroidStudio again.

Related

Why does Android Studio Arctic Fox fail to sync my project

Android Studio Arctic fox 2020.3.1 Patch 2 fails with th following error in idea.log:
ERROR - intellij.openapi.progress.Task - java.lang.IllegalStateException: Can't resolve library via LibraryId(name=Gradle: com.google.j2objc:j2objc-annotations:1.3, tableId=com.intellij.workspaceModel.storage.bridgeEntities.LibraryTableId$ProjectLibraryTableId#4b9d4a4e)
java.lang.RuntimeException: java.lang.IllegalStateException: Can't resolve library via LibraryId(name=Gradle: com.google.j2objc:j2objc-annotations:1.3, tableId=com.intellij.workspaceModel.storage.bridgeEntities.LibraryTableId$ProjectLibraryTableId#4b9d4a4e)
I have a suspicion that the concrete lib in question is a bit random. Before I upgraded from Patch 1 to Patch 2, the error said:
Caused by: java.lang.IllegalStateException: Can't resolve library via LibraryId(name=Gradle: androidx.exifinterface:exifinterface:1.0.0#aar, tableId=com.intellij.workspaceModel.storage.bridgeEntities.LibraryTableId$ProjectLibraryTableId#73f6fd09)
Gradle syncs just fine - the sync finishes with BUILD SUCCESSFUL in 5s . It's definitely Android studio that is the problem. Any Idea?
File > Invalidate Cache and Restart solved the problem

Android Studio crashes on startup (64 bit, Windows 10)

Each attempt to start Android Studio gets the same results -
Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
-----
JRE 1.8.0_242-release-1644-b01 amd64 by JetBrains s.r.o
C:\Program Files\Android\Android Studio\jre\jre
I've re-installed - same error.
I've uninstalled, removed .gradle and .AndroidStudio4.0 folders, reinstalled - same error.
Any help gratefully accepted.
Try to delete or rename marketplace folder in android studio
~\AppData\Roaming\Google

Android studio on Ubuntu will not open

Not sure what happened. I was using it and then switched to editing an api file in Geany, then went back to Android Studio and got this error below. Tried uninstalling and reinstalling but still no go. Any ideas?
Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
-----
JRE 1.8.0_242-release-1644-b3-6222593 amd64 by JetBrains s.r.o
/snap/android-studio/94/android-studio/jre/jre"
Remove lib folder .local/share/Google/AndroidStudio4.1/marketplace
or execute command
rm -rf ~/.local/share/Google/AndroidStudio4.1/marketplace/lib
It's working for me :-)
in ubantu: go to -> HOME/.LOCAL/SHARE/GOOGLE/ANDROIDSUTDIO4.1/marketplace
marketplace file need to remove then start android studio working fine

Problems with Installing Android Studio on Linux Mint

I have the android-studio folder and am trying to execute ./studio.sh.
The problem appears as the following:
/android-studio$ ./studio.sh
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class com.intellij.idea.Main
Caused by: java.lang.ClassNotFoundException: com.intellij.idea.Main
Anyone else have this problem?
I have java installed already.
delete folder
linux
i delete and run and work for me below directory
~/.config/JetBrains/
enter link description here

Unable to update from android studio 3.1.4 to 3.4.1

I am trying to update android studio from 3.1.4 to 3.4.1 it showing below error while patch:
ERROR Patch.apply - apply failed
java.io.IOException: Impossibile trovare il file specificato
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:233)
at com.intellij.updater.Utils.copyStream(Utils.java:237)
at ie.wombat.jbdiff.JBPatch.realAllFileContent(JBPatch.java:141)
at ie.wombat.jbdiff.JBPatch.bspatch(JBPatch.java:67)
at
com.intellij.updater.DiffAlgorithm$JBDiffAlgorithm.applyDiff
(DiffAlgorithm.java:118)
at
com.intellij.updater.BaseUpdateAction.applyDiff(BaseUpdateAction.java:145)
at com.intellij.updater.UpdateAction.doApply(UpdateAction.java:55)
at com.intellij.updater.PatchAction.apply(PatchAction.java:199)
at com.intellij.updater.Patch.lambda$apply$3(Patch.java:399)
at com.intellij.updater.Patch.forEach(Patch.java:471)
at com.intellij.updater.Patch.apply(Patch.java:390)
at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:64)
at com.intellij.updater.Runner.install(Runner.java:357)
at com.intellij.updater.Runner.main(Runner.java:131)
any clue?
as pointed by #Gabriele Mariotti invalidate cache and restart seems, in the second try, to resolve the problem

Resources