Android Studio freezes when moving user interface element

I installed Android Studio 1.0 and have JDK 1.8.

I create a new project, use the "empty activity with a fragment" and install the minimum version on the candy (5.0)

Then I will go to the _main.xml fragment and drag the user interface element onto the phone (in the example I used the button)

At that moment, when the drag and drop interface is displayed on the phone, the android studio freezes and I can not expect anything, expecting the process to be started using the Windows task manager.

enter image description here

My mouse looks like this:

enter image description here

Any ideas? Thanks.

+6
source share
2 answers

Perhaps I found a solution for this.

I had the exact same problem and couldn’t understand what was going on for my life until:

I suggested that perhaps it was only the window screen that was frozen (visual rendering of the Android Studio program itself), and suggested that it might have used the DirectX device to render the Android UI.

My computer runs another application that uses a DirectX device for rendering (SimpleJungleTimer, the application I programmed with DirectX overlay for League of Legends jungle timers). After I turned off this application, Android Studio works fine (without freezing when working with the user interface)

In the end, it seems like this is a bug with Android studio itself, where they incorrectly kill / reboot the DirectX rendering device when it conflicts with another active DirectX device (which probably should be fixed by Android studio developers), however before as long as Android developers studio does not fix it, you can work around this problem by making sure that any other applications that can use DirectX for rendering, closed when encoding in Android studio, that they render the device does not conflict with DirectX Arrange Twomey Android Studio DirectX.

+6
source

There is also a problem with Java 8 on Mac OSX. With any drag and drop, I made a result to preview Android Studio 2.0. This problem also happens to me when I use intellij 15. You can see this link: https://youtrack.jetbrains.com/issue/IDEA-146691 .

I will switch the use of JDK in may projects to Java 7, and the drag and drop function works. You can make a switch by choosing File > Project Structure > Reposition Your JDK.

0
source

Source: https://habr.com/ru/post/979468/


All Articles