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

9 posts, 0 answers
  1. David
    David avatar
    3 posts
    Member since:
    Nov 2015

    Posted 13 Nov 2015 Link to this post

    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

  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 18 Nov 2015 Link to this post

    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
  3. DevCraft banner
  4. Suhail
    Suhail avatar
    4 posts
    Member since:
    Feb 2015

    Posted 07 Dec 2015 in reply to Todor Link to this post

    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.

  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 08 Dec 2015 Link to this post

    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
  6. Suhail
    Suhail avatar
    4 posts
    Member since:
    Feb 2015

    Posted 08 Dec 2015 in reply to Todor Link to this post

    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.

  7. Todor
    Admin
    Todor avatar
    778 posts

    Posted 08 Dec 2015 Link to this post

    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
  8. Suhail
    Suhail avatar
    4 posts
    Member since:
    Feb 2015

    Posted 08 Dec 2015 Link to this post

    Thanks a million.

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

     

    Thanks for your guidance you made my day.

  9. Suhail
    Suhail avatar
    4 posts
    Member since:
    Feb 2015

    Posted 09 Dec 2015 in reply to Todor Link to this post

    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.

  10. Todor
    Admin
    Todor avatar
    778 posts

    Posted 12 Dec 2015 Link to this post

    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
Back to Top
DevCraft banner