Android Build Error with Latest Release

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
froggyware
Newbie
Newbie
Posts: 21
Joined: Tue Nov 15, 2011 12:00 am

Android Build Error with Latest Release

Post by froggyware » Mon Oct 08, 2012 8:02 pm

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,

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Android Build Error with Latest Release

Post by Yeray » Tue Oct 09, 2012 11:44 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

froggyware
Newbie
Newbie
Posts: 21
Joined: Tue Nov 15, 2011 12:00 am

Re: Android Build Error with Latest Release

Post by froggyware » Tue Oct 09, 2012 12:42 pm

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,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Android Build Error with Latest Release

Post by Narcís » Wed Oct 10, 2012 2:37 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

froggyware
Newbie
Newbie
Posts: 21
Joined: Tue Nov 15, 2011 12:00 am

Re: Android Build Error with Latest Release

Post by froggyware » Fri Oct 12, 2012 10:26 am

-dontwarn org.w3c.**

Fixed the problem.

thx

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Android Build Error with Latest Release

Post by Narcís » Mon Oct 15, 2012 7:01 am

Hi froggyware,

Thanks for your feedback, I'm glad to hear that.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

froggyware
Newbie
Newbie
Posts: 21
Joined: Tue Nov 15, 2011 12:00 am

Re: Android Build Error with Latest Release

Post by froggyware » Tue Nov 20, 2012 8:57 am

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.

Marc
Site Admin
Site Admin
Posts: 1214
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Android Build Error with Latest Release

Post by Marc » Tue Nov 20, 2012 12:20 pm

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
Steema Support

Marc
Site Admin
Site Admin
Posts: 1214
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Android Build Error with Latest Release

Post by Marc » Wed Nov 21, 2012 3:00 pm

A new update correcting this error has been placed on the customer download page.

Regards,
Marc
Steema Support

Post Reply