Closed alexanderadam closed 3 years ago
Yeah, that's a bug in IntelliJ (have seen with other IDEs as well). Looks like something to do with UI scaling.
Thank you for responding so fast. What can I do to get to the initial state? Which directories do I have to delete?
I would delete the ~/.AndroidStudio4.1
directory and see if that helps
Thank you.
IMHO it created the ~/Android
on the first run. I deleted it, though. Can I somehow force it to reinstall the Android SDK in the way it was intended?
Found it:
File
> Setting
> Appearance & Behavior
> System Settings
> Android SDK
> [Edit]
Button Click (Blue Color Link Button)[Next]
button & [Finish]
button
What I did
I tried installing Android Studio
4.1.0.19
via Snap. The installation via GUI didn't work (because of the classic confinement):I would expect that at least the required command (
sudo snap install android-studio --classic
) would be shown or even directly executed. However, therefore I installed Android Studio via CLI:After that I was able to run Android Studio. The wizard popped up, it tried to install more dependencies (Java & emulator stuff) and I pressed
Next
a few times. The IDE started, I opened an existing project and it wanted to install plugins (Markdown plugin becaused I opened the project README and I guess a few more dependencies).Afterwards it wanted to restart and I let it restart.
The issue
Since that moment I cannot start Android Studio any more because an error is shown (seems to be caused by a markdown plugin — it was proposed by Android Studio itself but isn't compatible anyway — what a mess!):
This is what the console is showing (click to expand)
``` snap run android-studio Oct 29, 2020 5:55:07 PM java.util.prefs.FileSystemPreferences$6 run WARNING: Prefs file removed in background /home/user/.java/.userPrefs/prefs.xml 2020-10-29 17:55:07,434 [ 1713] ERROR - tellij.diagnostic.LoadingState - Should be called at least in the state LAF_INITIALIZED, the current state is: BOOTSTRAP Current violators count: 1 java.lang.Throwable at com.intellij.diagnostic.LoadingState.logStateError(LoadingState.java:56) at com.intellij.diagnostic.LoadingState.checkOccurred(LoadingState.java:52) at com.intellij.util.ui.UIUtil.Now I thought, that I could simply reinstall the Snap (
sudo snap remove android-studio && sudo snap install android-studio --classic
) since everything (or at least most stuff) should be within a container.But it turned out the error persist.
EDIT: I had to delete
~/.local/share/Google/AndroidStudio4.1/
to make it running again. Now it's asking for the path to the Android SDK though although I thought this was part of the wizard process before: