Eclipse problems when adding layoutlib.jar to a project

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


Sponsored Links
 Hello,

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,
Lars

--~--~---------~--~----~------------~-------~--~----~



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. USB Mouse Not working after install

I have just purchased a Desktop Intel 41TY, Intel Core 2 Deo, 2GB, 500GB. I 
have a KVM switch connected to a BenQ 14inch TFT monitor. A USB mouse attached 
to the Desktop and a PS2 Keyboard connected to the KVM switch.

Problems with the setup
1) The display gets screwed when I move from one terminal and back to the GUI 
terminal
2) Mouse just does not work. The Left Click works, but no movement. Around the 
mouse cursor is some kind of box with red lines instead of a cursor.

I guess Untangle does not have the drivers for this monitor (around 4 years 
old) and mouse. Can someone guide me to debug the exact problem. Is it the 
driver or something else.

Siddharth
--~--~---------~--~----~------------~-------~--~----~

2. HTTP-DELETE-Method doesn't support payload?

Hi,

I'm writing an application that accesses a RESTful web service that
requires to send a payload during using the HTTP DELETE method.
However when writing to the OutputStream of the HttpURLConnection I
get a ProtocolException  with the detail message "This method does not
support writing: DELETE".

I know of a "normal" (non-Android) Java application that accesses the
same web service with the DELETE method and a payload using basically
the same code and that works, so it seems that the Android Java
implementation/VM doesn't support this.

I haven't prepared any simple test code yet, but could never-the-less
anyone tell me if this is a known limitation, and if there is a way
around it, or if 'm possibly doing something wrong.

Thanks, Robin

--~--~---------~--~----~------------~-------~--~----~

3. Audio FFT and Spectrum View

4. How can I programatically launch Browser in my android application

5. Building different versions of an app -- best practice?

6. How add fields to DB_Table?

7. Clickable Location In Calendar App