I've had the same problem with JTPL <http://jtpl.sf.net/>

The solution I've found (not the best solution, but a pretty quick and
simple one) was to actually get the source code of the library and
include it in the project. I.e. now I have the packages:

com.android.vending.licensing;
com.android.vending.licensing.util;
com.myapp;
com.myapp.activity;
com.myapp.service;
...
net.sf.jtpl;
net.sourceforge.jtpl;

It's apparent Android (or Eclipse?) doesn't like JARs very much.

A note is that even with this solution (including the source code in
your own project), Eclipse still won't be able to build your app. I do
it from the command line using ant, which, yes, it's pretty
rudimentary and slower than Eclipse.

Eclipse has a very erratic behavior (3.5 and 3.6 as well).. it will
sometimes build my app (after a clean project), but then I modify the
source code a bit and it will start giving the "Conversion to Dalvik
format failed with error 1" message. Other times it will give the
error immediately after clean project.

Have no idea what's going on. My bet is the ADT Plugin is messing up
for some reason (BTW they released 8.0.1 like less than a day after
releasing 8.0.0, to "fix bugs". I'd expect an 8.0.2 pretty soon...).


On Dec 8, 5:24 pm, olivier <[email protected]> wrote:
> After few test,
>
> the problem is coming from an external Jar.
> twitter4J -http://twitter4j.org/en/index.html.
>
> I try to exclude the file doing :
> -keep public class twitter4j.**{ public protected *; }
>
> I still got the problem.
>
> I have no problem with the libGoogleAnalytics.jar
>
> Does someone has a solution ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to