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. Help!!!! Live streaming (from DSS to android)

Does anyone know if the latest 2.1 SDK supports LIVE video streaming
playback in Android.

My setup is using a video decoder which receives a Live video stream
to VLC, which in turn sends this to Darwin Streaming Server, I then
open (android emulator) the media player demo on  rtsp://<server ip>/
stream.sdp.

DSS shows that the Android emulator is connected and has requested the
stream.sdp, however the buffering on Android shows repeatedly as 0%
with no output of the live video stream shown.

The Question--->
Does this mean that Android (as standard) does not support LIVE rtsp
video streaming ?

-- 

2. Android 2.1 & SQL Server

Hello everyone,

Well about 3 weeks ago I switched to a Droid phone from a Windows phone (and
love it). I'm getting into the programming side now. I have a MCSD & MCSE
from Microsoft so I know programming. Now my question is. I can't seem to
find any information on connecting to a SQL Server DB to retrieve & add
data. It was easy on the Windows phone. 

 

Please Help

Mark

-- 

3. Review TouchDown Exchange Mail Client (was: Microsoft Outlook Exchange For Spica)

4. Remote SMS

5. Minta ijin

6. Avoid restarting background threads on orientation change

7. How to force Activity to call finalize()?