Android的工作室挂在拖/下降的UI元素 [英] Android Studio hangs when drag/dropping UI element

查看:222
本文介绍了Android的工作室挂在拖/下降的UI元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装Android的工作室1.0,并有JDK 1.8。

I installed Android Studio 1.0 and have JDK 1.8.

我做新项目,使用与片段空白活动,并设置最低版本棒棒糖(5.0)

I make New Project, use a 'blank activity with fragment' and set the minimum version to lollipop (5.0)

然后我去fragment_main.xml和UI元素拖动到手机(在这个例子中,我用一个按钮)

Then I go to fragment_main.xml and drag an UI element to the phone (in the example i used a button)

当下拖动界面在手机上看到,机器人工作室挂起状态,我无法做任何期待与Windows任务管理器终止进程。

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:

任何想法? 谢谢你。

推荐答案

我可能已经找到了解决这个。

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:

我推测,也许它只是Windows显示被冻结(Android的工作室程序本身的视觉渲染)和猜测,也许这是使用DirectX的设备做了Android的用户界面的呈现。

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.

我碰巧有另一个应用程序在我的电脑上运行,它使用的DirectX设备进行渲染(SimpleJungleTimer,一个应用程序编程我用的DirectX覆盖了英雄联盟的丛林定时器)。当我关闭这个应用程序的Andr​​oid工作室似乎正常工作(不与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)

最后听起来这是与Android工作室本身,他们不正确地杀/重装DirectX的渲染器,当它在与其他应用程序的活动的DirectX设备冲突(东西的Andr​​ ?? oid Studio开发人员或许应该修正)中的错误然而,直到机器人工作室的开发人员解决这个问题,你应该能够为解决这个bug通过确保可以使用DirectX渲染任何其他应用程序被关闭,而编码机器人工作室让自己的DirectX渲染设备不与Android工作室的DirectX设备发生冲突。

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.

这篇关于Android的工作室挂在拖/下降的UI元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆