[android-developers] Re: Proguard and Conversion to Dalvik format failed with error 1

2010-12-13 Thread Felix
Welp, the errors are back. Any ideas?

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

[android-developers] Re: Proguard and Conversion to Dalvik format failed with error 1

2010-12-09 Thread Felix
Here's an update.


Ant stopped working at one point so I got desperate and Googled around
and finally did this:


touch `find .`


In my workspace directory (which updates all the files' modification
dates). Then refresh every project in Eclipse (select it and press F5),
then clean all projects, and it seems to work now (both Eclipse and
Ant).


I'll let you know if the errors come back (OHGODPLEASEDONT).

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

[android-developers] Re: Proguard and Conversion to Dalvik format failed with error 1

2010-12-09 Thread Felix Oghina
I've had the same problem with JTPL 

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  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Proguard and Conversion to Dalvik format failed with error 1

2010-12-08 Thread olivier
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en