java.lang.NoClassDefFoundError: com.telerik.widget.chart.visualization.behaviors.ChartTooltipBehavior

3 posts, 0 answers
  1. Xiaoming
    Xiaoming avatar
    9 posts
    Member since:
    Oct 2011

    Posted 07 Aug 2015 Link to this post

    when I use ChartTooltipBehavior in a chart ,it occured this error.

    dalvikvm﹕ Could not find class 'com.telerik.widget.chart.visualization.behaviors.ChartTooltipBehavior', referenced from method com.luckyxmobile.familyhealthtracker.provider.MainListViewItemAdapter.prepareChart
    E/dalvikvm﹕ Could not find class 'com.telerik.android.primitives.widget.tooltip.contracts.DrawListener', referenced from method com.telerik.widget.chart.visualization.common.RadChartViewBase.onDraw
    FATAL EXCEPTION: main
        java.lang.NoClassDefFoundError: com.telerik.widget.chart.visualization.behaviors.ChartTooltipBehavior​

    My codes is :

    RadCartesianChartView cartesianChart = (RadCartesianChartView) radCartesianChartView;
    ChartTooltipBehavior tooltipBehavior = new ChartTooltipBehavior(mContext);
    cartesianChart.getBehaviors().add(tooltipBehavior);​

  2. Xiaoming
    Xiaoming avatar
    9 posts
    Member since:
    Oct 2011

    Posted 07 Aug 2015 Link to this post

    But I can see the Class ChartTooltipBehavior 
  3. DevCraft banner
  4. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Aug 2015 Link to this post

    Hello Xiaoming,

    Thanks for writing.
    This usually happens because your android studio/eclise environment has become corrupted. You have to clean and build your project. Also if you're building with gradle do a gradle sync if it doesn't happen automatically.

    As a last resort you can redownload the controls and recreate your project.

    Regards,
    Victor
    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