简体   繁体   English

Eclipse ADT插件 - 图形布局闪烁并消耗内存

[英]Eclipse ADT Plugin - Graphical Layout flickers and eats up memory

As there's no response to the other question and I'm not sure if it has been noticed at all since it was an open question I posted to here's the thing again in hope someone can help me ;) 因为对另一个问题没有回应,我不确定它是否已经被注意到,因为这是一个悬而未决的问题,我发布到这里是再次希望有人可以帮助我;)

When I do anything in the graphical layout editor of the ADT the layout buttons (center horizontally, vertically etc) start to flicker for about 10 seconds. 当我在ADT的图形布局编辑器中执行任何操作时,布局按钮(水平,垂直等中心)开始闪烁约10秒钟。 During this time the RAM used by Eclipse's JVM is increasing by about 200 MiB. 在此期间,Eclipse的JVM使用的RAM增加了大约200 MiB。 This RAM also isn't freed at any time until I completely close Eclipse. 在我完全关闭Eclipse之前,此RAM也不会随时释放。 This is especially nasty as I can only do about 6 actions per Eclipse session until I have to restart it to get the RAM freed up again. 这尤其令人讨厌,因为我只能在每个Eclipse会话中执行大约6个操作,直到我必须重新启动它才能再次释放RAM。

Environment: Windows XP SP3 JDK 1.6.0_31 Eclipse 3.7 ADT 16.0.1 环境:Windows XP SP3 JDK 1.6.0_31 Eclipse 3.7 ADT 16.0.1

Plug-Ins: [ http://pastebin.com/b1ZT4904] 插件:[ http://pastebin.com/b1ZT4904]

Any hints are welcome =) 任何提示都是受欢迎的=)

Regards, Chris 问候,克里斯

The new lint eat up memory and flickering buttons, when checking. 检查时,新的棉绒会耗尽记忆和闪烁的按钮。 Temporary switch off some checks. 暂时关掉一些支票。 (or the "when saving ..." checkbox) You can found it in Window/Preferences menu ->search "lint". (或“保存时...”复选框)您可以在窗口/首选项菜单中找到它 - >搜索“lint”。

I also experienced this problem. 我也遇到过这个问题。 After searching for a solution I tried turning off the two checkboxes in Window/Preferences/Android/Lint Error Checking. 在搜索解决方案后,我尝试关闭Window / Preferences / Android / Lint Error Checking中的两个复选框。 This helped a little bit, but the Java Stack heap continued to grow until Eclipse either crashed or I had to close it before it did. 这有点帮助,但Java Stack堆继续增长,直到Eclipse崩溃或我不得不关闭它之前。

What ended up compounding the problem for me was some of the heights and widths were using "dip" instead of "dp" as the measurement unit and probably more importantly, "dp" in the TextSize attribute instead of "sp". 最终导致问题复杂化的是一些高度和宽度使用“dip”而不是“dp”作为测量单位,可能更重要的是,在TextSize属性中使用“dp”而不是“sp”。

So change all units to "dp" except for testsize use "sp" 所以将所有单位更改为“dp”除了testize使用“sp”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM