Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8396799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:37:49+00:00 2026-06-09T20:37:49+00:00

Right now i am trying to create a graph in android by self learning.After

  • 0

Right now i am trying to create a graph in android by self learning.After did some searches on Google i got some ideas.It recommends me to use some library or jar files for creating graphs or charts on android.Like wise i got kichart WinRAR file from this link.

After emulator getting run,its just toasting as “sorry your application has stopped unexpectedly.please try again.force to close”

Can any one please help me to overcome this issue?
Please find my sources for reference.

MainActiviy.java

package com.example.z_chart;

import com.kidroid.kichart.ChartActivity;
import com.kidroid.kichart.model.Aitem;
import com.kidroid.kichart.view.LineView;
import android.graphics.Color;
import android.os.Bundle;

public class MainActivity extends ChartActivity 
{
LineView lv = null;

@Override
public void onCreate(Bundle savedInstanceState) 
{

super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

String[] arrX = new String[4];
arrX[0] = "2010.1";
arrX[1] = "2010.2";
arrX[2] = "2010.3";
arrX[3] = "2010.4";

float[] arr = new float[4];
arr[0] = 100;
arr[1] = 150;
arr[2] = 380;
arr[3] = 300;


Aitem[] items = new Aitem[1];
items[0] = new Aitem(Color.RED, "Payout", arr);

lv = new LineView(this);
lv.setTitle("Money balance in four months");
lv.setAxisValueX(arrX);
lv.setItems(items);
setContentView(lv);
}}

LOGCAT

08-17 11:08:53.473: W/dalvikvm(345): Unable to resolve superclass of Lcom/example/z_chart/MainActivity; (414)
08-17 11:08:53.473: W/dalvikvm(345): Link of class 'Lcom/example/z_chart/MainActivity;' failed
08-17 11:08:53.523: D/AndroidRuntime(345): Shutting down VM
08-17 11:08:53.523: W/dalvikvm(345): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
08-17 11:08:53.604: E/AndroidRuntime(345): FATAL EXCEPTION: main
08-17 11:08:53.604: E/AndroidRuntime(345): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.z_chart/com.example.z_chart.MainActivity}: java.lang.ClassNotFoundException: com.example.z_chart.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.example.z_chart-1.apk]
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.os.Handler.dispatchMessage(Handler.java:99)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.os.Looper.loop(Looper.java:123)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.ActivityThread.main(ActivityThread.java:4627)
08-17 11:08:53.604: E/AndroidRuntime(345):  at java.lang.reflect.Method.invokeNative(Native Method)
08-17 11:08:53.604: E/AndroidRuntime(345):  at java.lang.reflect.Method.invoke(Method.java:521)
08-17 11:08:53.604: E/AndroidRuntime(345):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-17 11:08:53.604: E/AndroidRuntime(345):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-17 11:08:53.604: E/AndroidRuntime(345):  at dalvik.system.NativeStart.main(Native Method)
08-17 11:08:53.604: E/AndroidRuntime(345): Caused by: java.lang.ClassNotFoundException: com.example.z_chart.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.example.z_chart-1.apk]
08-17 11:08:53.604: E/AndroidRuntime(345):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
08-17 11:08:53.604: E/AndroidRuntime(345):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-17 11:08:53.604: E/AndroidRuntime(345):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-17 11:08:53.604: E/AndroidRuntime(345):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
08-17 11:08:53.604: E/AndroidRuntime(345):  ... 11 more

Manifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.z_chart"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="10" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/title_activity_main" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
 </application>
</manifest>

Thanks in advance!..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:37:50+00:00Added an answer on June 9, 2026 at 8:37 pm

    Try to Clean your Project and then check again.

    Click on Project -> Clean in Eclipse.

    Clean the project and build it again , so that the R.java is updated and doesn’t uses any cached files

    Here you can find different different solutions.

    or

    Remove this line from your code.

    setContentView(R.layout.activity_main);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now i am trying to create a graph in android,after searching from google
Hey there! I'm doing this project and right now I'm trying to: create some
I'm trying to create an android keyboard, right now I want it just to
Right now I am trying to create a producer/consumer thread, the producer thread goes
Right now I'm trying to create my own tiny MVC (just for practice and
I'm trying to create a faster query, right now i have large databases. My
So I'm trying to create a forum with avatars, but right now the text
What I'm trying to do right now is to create an array with a
As of right now I am trying to create an ASP.NET page which will
I have an issue right now with a program im trying to create. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.