I'm using Android Studio Bumblebee 2021.1.1 and my code isn't automatically reformatted even though I selected the "Reformat Code" option in the commit window. I've already tried resetting Android Studio settings, but that didn't help. Does anyone have any idea why this might be? Here is a link to a thread on a Jetbrains forum with the same issue: https://youtrack.jetbrains.com/issue/IDEA-165776
Related
I have been using Android Studio for years. Very shortly after upgrading to Android Studio 3.5, the menu options have stopped working. I mean, anything under File, Edit .. all the way to Help. By "stopped working", I mean, I can use the mouse to select, and then .. nothing happens. A colleague suggested to invalidate caches. But invalidate caches itself is under the File menu, so nothing happens when it is selected.
Any ideas? Quitting and starting android studio didn't work. Rebooting didn't work. Changing the java version used to run Android Studio didn't work (it is set to be the same one that gradle is using). Even downloading and installing a fresh copy of Android Studio 3.5 didn't work -> from this, I suspect the problem is a settings problem, but WHICH settings got somehow corrupted? and that survives even with a fresh installation of Android Studio?
To find-in-path, the menu option doesn't work, whereas I can directly use the keyboard shortcut ⇧⌘F and it brings up the find window.
Am running on MacOS Mojave. Java home is /Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home
Finally, Android Studio 4.0 came along, and we installed the patch to upgrade to it, and the mysterious problem went away, presumably as a result of the upgrade.
I'm not able to create a new project in the android studio. I am getting a warning message
java.lang.RuntimeException: Could not find a
JavaToKotlinConversionProvider, even though one should be bundled with
Studio at
com.android.tools.idea.npw.model.JavaToKotlinHandler.getJavaToKotlinConversionProvider(JavaToKotlinHandler.java:56)
at
com.android.tools.idea.npw.template.TemplateValueInjector.addKotlinVersion(TemplateValueInjector.java:410)
Go to Preferences -> Plugins -> Kotlin and update the Kotlin plugin to the last version even though you don't write your code in Kotlin.
I have the same error, I've juste disabled the kotlin plugin and after restarting the IDE, just re-enable it. After that final restart, every thing works fine.
Go to file and the plugin in android studio and update your Kotlin plugin...
I opened an old project (by old I mean another project) and did everything Android Studio said to give me a successful build (I faced some errors when I tried to build the project that I could build couple weeks ago and actually I fixed them, updating gradle and stuff like that, not code issues of course).
After that I could create new project same as before.
Update seems like in order to keep Android Studio happy we have to keep Kotlin plugin enabled, interesting.
I solved this problem by doing this:
File->Settings->Plugins
Click the Installed tab at the top.
Search "kotlin" and click the result that shows up.
Click Enable at the top right
settings>plugins>check Kotlin >Apply then Ok solved it for me.
It occurred due to migration from Android Studio 3.2 to 3.3
Goto File-->Invalidate Caches/Restart
This will solve the problem.
Greetings.
I am learning java and android development for last two days. I am using android studio version 3.1.3
the welcome screen interface and open project screen that i used yesterday was different.
Today i am seeing a new screen and new way of opening android project.
below are the screen shots.
when i click on create new project the below screen appears
please guide me through this.
Delete the Android Studio folder in the user's folder. Let Android Studio download everything back and the view will become normal.
Going to events on the home screen and clicking 'enable android support' that this fixed my issue, however I did need to re-install all the SDK versions I previously used.
Older versions of Android Studio had a Refresh option in the layout preview in the IDE, but in v2.2 it has vanished. I am finding repeatedly that I update drawable bitmaps in the project with updated files, that new version is not reflected automatically, and I do not see the preview. Problems like this are so common with Android Studio, it's such an utterly infuriating IDE and so flaky, despite the speed it is advancing.
Where did the refresh option go? I can't believe I'm having to actually ask this, but maybe I missed it somewhere obvious!
At the moment I can not add anything new to my visual studio project because when I try I get this random jumble. I tried reinstalling Visual Studio to no avail and even a system reset didn't fix it. I was wondering if anyone has any possible solutions to this problem...
That looks like a GPU-acceleration GUI glitch. You can disable acceleration by going to TOOLS/Options - unclick "automatically adjust visual experience based on client performance" and disable both sub-options.
Or you can try updating your graphics driver for your system as Roger Rowland suggested in the comment to your question.