This is a migrated thread and some comments may be shown as answers.

Could not compile the seismograph sample code with latest Chart-2015.3.1113-trial-release.aar

8 Answers 82 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 14 Nov 2015, 05:31 AM

Could not compile the  seismograph sample code (on github)  with latest lib - Chart-2015.3.1113-trial-release.aar. It uses an old lib -Chart-2014.1.0226.aar.

Could some one post an updated MainActivity.java for the new lib? 

 Thanks,

 

Here is the errors:

C:\Android-samples-master\Blogs\Seismograph\V2\seismograph\src\main\java\com\telerik\demo\seismograph\MainActivity.java
Error:(186, 28) error: constructor LinearAxis in class LinearAxis cannot be applied to given types;
required: no arguments
found: MainActivity
reason: actual and formal argument lists differ in length
Error:(192, 33) error: constructor CategoricalAxis in class CategoricalAxis cannot be applied to given types;
required: no arguments
found: MainActivity
reason: actual and formal argument lists differ in length
Error:(209, 29) error: no suitable constructor found for LineSeries(MainActivity)
constructor LineSeries.LineSeries(DataPointBinding,DataPointBinding,Iterable) is not applicable
(actual and formal argument lists differ in length)
constructor LineSeries.LineSeries() is not applicable
(actual and formal argument lists differ in length)
Error:(210, 15) error: cannot access Function
class file for com.telerik.android.common.Function not found
Error:(214, 35) error: constructor CartesianChartGrid in class CartesianChartGrid cannot be applied to given types;
required: no arguments
found: MainActivity
reason: actual and formal argument lists differ in length
Error:(220, 26) error: cannot access ObservableCollection
class file for com.telerik.android.common.ObservableCollection not found
Error:Execution failed for task ':seismograph:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 15.232 secs

8 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 18 Nov 2015, 02:38 PM
Hi David,

Indeed it is an example from an old blog post and there have been some changes since then.
I have just updated the sample so you should be able to see how it works.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Suhail
Top achievements
Rank 1
answered on 07 Dec 2015, 06:19 PM

Hey, Even i have the same 4 errors. 

Error:(212, 28) error: constructor LinearAxis in class LinearAxis cannot be applied to given types;
required: no arguments
found: MainActivity
reason: actual and formal argument lists differ in length.

Can you please post a link to the updated library or suggest me a methods to get rid of this error.

Been stuck with it for months.

0
Todor
Telerik team
answered on 08 Dec 2015, 12:14 PM
Hi Suhail,

This is the only link to that sample and it has been updated recently to reflect the latest changes. Please get the updated version and get back to us if the issue persists. If you are referring to another sample that needs to be updated, let us know.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Suhail
Top achievements
Rank 1
answered on 08 Dec 2015, 01:19 PM

Hey thanks for the quick reply.

Just got 3 errors with the version 2. I dont know if its my compiler issue or not.

Error:(194, 15) error: cannot access Function
class file for com.telerik.android.common.Function not found

Error:(204, 26) error: cannot access ObservableCollection
class file for com.telerik.android.common.ObservableCollection not found

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

PLease let me know what should i do with the object series.

 

Thanks.

0
Todor
Telerik team
answered on 08 Dec 2015, 01:40 PM
Hello Suhail,

You need to add the Common and Primitives aar files to the libs folder, as you have done with the Chart aar file.

Let us know if you need further assistance.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Suhail
Top achievements
Rank 1
answered on 08 Dec 2015, 01:50 PM

Thanks a million.

Had figured out the Library error as soon as i posted the message.

 

Thanks for your guidance you made my day.

0
Suhail
Top achievements
Rank 1
answered on 09 Dec 2015, 02:26 PM

Hey , can you suggest me a method to get the values of the X,Y and Z axis from the telerick chart and store it in a csv format on the device.

so that i can review the values

or store the values in a List.

Thanks.

0
Todor
Telerik team
answered on 12 Dec 2015, 08:33 AM
Hi Suhail,

Since the values of the chart axes are generated depending on the data that you pass them, I believe you can use the data itself to get the values that you need to store. As to the storing, here's an article with more information about the available options.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
David
Top achievements
Rank 1
Answers by
Todor
Telerik team
Suhail
Top achievements
Rank 1
Share this question
or