Bad lag in Android Studio Visual Layout Editor - android

In the latest version of Android Studio, I'm getting really bad lag when adding constraints in the Visual Layout editor when using a ConstraintLayout. It freezes for a second or two when I first click the handle to add a constraint.
I've got 12GB of Memory (out of a total of 32GB) allocated to AS, AS running on an SSD, i7 Processor running at 4.0GHz, so I know it's not my system.
Any ideas? Anyone else experienced this?

I am currently exploring same issues on Android Studio 3.0 Preview 2.
Especially when waking PC up from sleep mode and reusing Android Studio.
It starts lagging more when I have android studio and visual layout designer opened for a long time.
So, I restart Android Studio when it starts lagging or delete caches and restart and waiting for a new version of android studio.
You may apply more ram for java. Propably this is going to help a bit.

Related

Layout messed up after opening another layout. Render problem

I'm working on a project for the last 2 weeks, everything was going fine until today. When I started my PC and opened Android Studio I noticed that when I open another layout the first layout gets messed up with an error Render problem. If I refresh the layout then everything becomes fine but the other layout gets messed up.
When I run the app on emulator or actual device it is working as it supposed to be.
Here is the screen recording:
Screen recording of the actual problem
Note: I'm new to this platform and don't know how to upload videos. Please ignore the low resolution of the GIF.
Here is what I tried:
Invalided cache and restated android studio.
Restarted my PC.
Checked for graphics card update.
But nothing helped.
Additional info:
I'm using Constraint layout, but I'm 100% sure that's not the cause.
I'm using Stable version of android studio. (Android Studio Arctic Fox | 2020.3.1 Patch 3)

Apps made with android studio 2.1.2 is very very slow while opening

So it may sound a bit weird but I am having a problem in android studio 2.1.2.
I used to work on android studio 1.5, and the apps which I made worked fine, but now with this android studio 2.1.2 the apps are very slow.
It is taking quite a lot of time to appear on the screen even a blank activity having a toolbar, fab.
So can anyone suggest what the problem could be? Keep in mind that phone is absolutely fine. I tested with other phones also.

Android Studio freezes when performs git merge

I'm using Android Studio version 1.5 on my MacBook Air 13" (8 GB RAM). I'm using built-in Git feature for my project's version control. I try merge local and remote branches which contains conflicts and when I solve them and click Apply button Android Studio just freezes and I can't do anything! I've tried wait for 5 and more minutes but there's no changes: Android Studio stays freeze. However, other programs on my Mac are working good! At screen you can see what I have as a result. How can I avoid freeze? Thanks for helping
I have the same problem. It just seems there is an invisible dialog that takes the focus. Try pressing esc or enter button and then see if you can do anything.

Android Studio hangs out

Whenever, I take Time Picker and Date Picker in XML layout file in Android studio.
Android studio hangs out.
Which configuration changes i need to do? Please help me.
#Mayuri Joshi
Courtesy goes to #Wootowl's Answer .
I theorized that perhaps it was just the windows display that was
frozen (the visual rendering of the Android Studio program itself) and
guessed that perhaps this was using a DirectX device to do the
rendering of the Android UI.
I happen to have another app running on my computer that uses a
DirectX device for rendering (SimpleJungleTimer, an app I programmed
with a DirectX overlay for League of Legends jungle timers). After I
shut down this app Android Studio appears to be working properly (not
freezing when working with the UI anymore)
Ultimately it sounds like this is a bug with Android Studio itself
where they don't properly kill / reload the DirectX rendering device
when it is in conflict with another app's active DirectX device
(something that the android studio developers should probably fix) .
What should you do
Avoid Drag and drop Facility
Use Stable Android Studio (Like Version 1.3) Avoid Beta Version .
File -> Invalidates Caches/Restart. (After Clean and rebuild your project)

Android Studio hangs when drag/dropping UI element

I installed Android Studio 1.0 and have JDK 1.8.
I make New Project, use a 'blank activity with fragment' and set the minimum version to lollipop (5.0)
Then I go to fragment_main.xml and drag an UI element to the phone (in the example i used a button)
The moment the drag interface is visible on the phone, android studio hangs and i'm unable to do anything expect killing the process with windows taskmanager.
My mouse looks like this:
Any ideas?
Thanks.
I may have found a solution for this.
I was having the same exact issue and couldn't figure out what was going on for the life of me until:
I theorized that perhaps it was just the windows display that was frozen (the visual rendering of the Android Studio program itself) and guessed that perhaps this was using a DirectX device to do the rendering of the Android UI.
I happen to have another app running on my computer that uses a DirectX device for rendering (SimpleJungleTimer, an app I programmed with a DirectX overlay for League of Legends jungle timers). After I shut down this app Android Studio appears to be working properly (not freezing when working with the UI anymore)
Ultimately it sounds like this is a bug with Android Studio itself where they don't properly kill / reload the DirectX rendering device when it is in conflict with another app's active DirectX device (something that the android studio developers should probably fix), however until the android studio developers fix this you should be able to get around this bug by making sure any other applications that might use DirectX for rendering are shut down while coding in Android Studio so that their DirectX rendering devices don't conflict with Android Studio's DirectX device.
There are also problem with Java 8 in Mac OSX. When any drag and drop I made result in hanging the Android Studio 2.0 preview. This problem also happen to me when I use intellij 15.
You can have a look at this link: https://youtrack.jetbrains.com/issue/IDEA-146691.
I switch the JDK use in may projects to Java 7 and the drag and drop feature works. You can do the switch by choose File > Project Structure > Change in your JDK location.

Categories

Resources