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
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
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.
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
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.
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
Thanks a million.
Had figured out the Library error as soon as i posted the message.
Thanks for your guidance you made my day.
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.
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