Eclipse problems when adding layoutlib.jar to a project

by Lars » Fri, 06 Mar 2009 05:19:28 GMT

Sponsored Links

I need to use the IWindowManager classes et al that resides in the
layoutlib.jar file and have added it to my project in Eclipse (3.4.2)
as an external Jar. After doing this, Eclipse utilizes 100% CPU (very
slow, almost hung) and is unusable when Eclipse tries to build the
project. Sometimes I get it to create the classes,dex file but most of
the time I have to kill the IDE. Also, the dex-file is very large
(around 4MB, when it gets created at all). If I remove layoutlib.jar
the project builds normally.

1. How do I use the layoutlib.jar file in my project?
2. How do I prevent the classes.dex file to contain a copy of
layoutlib.jar? I assume I don't need the jar file when running the
program on the device, or?

I use SDK 1.1_r1

Thanks in advance,


Eclipse problems when adding layoutlib.jar to a project

by Lars » Fri, 06 Mar 2009 15:46:52 GMT

 I have found the solution myself. These jar files should be added as a
"User Library". Right click the project in Eclipse, select "Build
Path" and then "Add Library". Select "User Library" and add the jar
file there.

Lars Brange


Sponsored Links

Other Threads

1. Launcher don't work when overlaped by transparent NOT_TOUCH_MODAL Activity.

Hi everybory,

I've some issues here with a transparent activity and Android Launcher. When
my activity is over the launcher and I try to click in one of Launcher's
icons, the button changes its background but nothing more happens, the
application is not started. Since I configured my Activity with
FLAG_NOT_TOUCH_MODAL, I expected that any Activity behind my not_modal
Activity can receive touch events. It's possible to launch applications by
clicking a widget, when my Activity is visible, only in Launcher menu the
NOT_TOUCH_MODAL behave in this strange manner.

I'm testing in a Android 2.1 emulator.

Please, somebody can help me?

Tks for attention.
Adriano Godinho


2. SpinnerActivityTest wrong behaviour on Android 1.5 emulator

I made my own code based on tutorial but failed.
In the next step I try to use original source from SDK examples.
First important thing is that SpinnerTest doesn't compile because the
string resource is missing...
Next I concentrate on the testStateDestroy test. This test on my
computer doesn't destroy the tested activity.
Please help me if I'm doing something wrong or this is some know bug
in SDK.

Regards Hsd


3. getting a key !!!!!

4. OOT : Holding the iPhone 4 affects the antenna, degrades cellular signal?

5. Testing froyo on dream

6. regarding service force close

7. Task Switching in Activities - confused.