Page 1 of 1

Android Build Error with Latest Release

Posted: Mon Oct 08, 2012 8:02 pm
by 17060769
Hi,

I just downloaded the latest release from August, now I have the following build error:

[proguard] Warning: com.steema.teechart.tools.SeriesBand$1: can't find referenced class org.w3c.dom.events.Event
[proguard] Warning: com.steema.teechart.tools.SeriesBand$2: can't find referenced class org.w3c.dom.events.Event

I do not have this error with the previous release.

Building for Android 4.0.3 API

What happened? How can I resolve this.

Right now I rolled back to the previous release.

thanks,

Re: Android Build Error with Latest Release

Posted: Tue Oct 09, 2012 11:44 am
by yeray
Hi,

SeriesBand.java hasn't been changed between v3.2012.0202 and v3.2012.0808.
I've tried the code below in a simple testing project and it seems to work fine for me here. Could you please give it a try and tell us if it works fine for you?

Code: Select all

        tChart1.getAspect().setView3D(false);
        tChart1.getLegend().setVisible(false);

        FastLine fastLine1 = new FastLine(tChart1.getChart());
        fastLine1.fillSampleValues();
       
        FastLine fastLine2 = new FastLine(tChart1.getChart());
        fastLine2.fillSampleValues();
        
        SeriesBand band1 = new SeriesBand(tChart1.getChart());
        band1.setSeries(fastLine1);
        band1.setSeries2(fastLine2);
If you still have problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.

Re: Android Build Error with Latest Release

Posted: Tue Oct 09, 2012 12:42 pm
by 17060769
Hi,

I'm sorry, I don't think i was very clear. The problem comes up when making a Release Build with Proguard enabled (not while in development). The issue seems to be with ProGuard (as usual) EG::

> ant release
.....

then the build fails with the following error:


[proguard] Warning: com.steema.teechart.tools.SeriesBand$1: can't find referenced class org.w3c.dom.events.Event
[proguard] Warning: com.steema.teechart.tools.SeriesBand$2: can't find referenced class org.w3c.dom.events.Event

I am currently unable to release using this version of TeeChart and has to revert back to the older version. I am currently building against Android 4.0.3 API

Regards,

Re: Android Build Error with Latest Release

Posted: Wed Oct 10, 2012 2:37 pm
by narcis
Hi froggyware,

Does the version work fine without ProGuard? Does the application work fine with ProGuard in spite of the warning message? If that's the case then you may want to look at some ProGuard warning suggestions: http://proguard.sourceforge.net/manual/ ... olvedclass searching for "can't find referenced class" there or related posts at StackOverflow:

http://stackoverflow.com/questions/8009 ... lass-scala
http://stackoverflow.com/questions/1258 ... nced-class
http://stackoverflow.com/questions/6974 ... nced-class

Thanks in advance.

Re: Android Build Error with Latest Release

Posted: Fri Oct 12, 2012 10:26 am
by 17060769
-dontwarn org.w3c.**

Fixed the problem.

thx

Re: Android Build Error with Latest Release

Posted: Mon Oct 15, 2012 7:01 am
by narcis
Hi froggyware,

Thanks for your feedback, I'm glad to hear that.

Re: Android Build Error with Latest Release

Posted: Tue Nov 20, 2012 8:57 am
by 17060769
Hi,

After sometime I came back to this issue again.
Looking at the source code of SeriesBand. There is the following import

import org.w3c.dom.events.Event

This does not appear to be correct. Should it not be:

import com.steema.teechart.events.Event

??
thx.

Re: Android Build Error with Latest Release

Posted: Tue Nov 20, 2012 12:20 pm
by Marc
Hello,

Thank you for the error report. The import line, import org.w3c.dom.events.Event; is indeed in the latest (downloadable) source. As you say, it shouldn't be there.

We're not sure where the error has slipped in from. The line can be removed completely, it is not required.

Apologies for the error and for your time it has taken. We'll correct the publicly downloadable version and replace it.

Regards,
Marc Meumann

Re: Android Build Error with Latest Release

Posted: Wed Nov 21, 2012 3:00 pm
by Marc
A new update correcting this error has been placed on the customer download page.

Regards,
Marc