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. android + pidgin = ???

Hi, every one , i want to know is there any one who are interest in
porting integrating IM Pidgin to Android. As i know, in android
market, there are several IM client, such as meebo,palringo, which are
fine to us, but for me who reside in china, it's not enough, these IM
client support QQ, fetion, and so on, and it's believed that these IM
client are not open-source, so i want to do a porting working in

so , any advises are expected.



2. Packaging SQLite DB for deployment


I have an SQLite DB file. I wish to include the sqlite file with my
apk. How do  i do that?



3. /dev/video

4. Scrolling speed in Gallery widget

5. HTC Magic for development using the android source code

6. Grid of clickable views

7. start