2013-02-12 4 views
0

Je suis en train de mettre en œuvre des applications graphiques en utilisant des exemples de fichiers Android Plot jar .. Il montre l'application s'exécute sur com.androidplot.xy.XYPlot du fichier Jar. Mais alors que je suis en train après la configuration du projet, il montre l'erreur, ..erreur dans le fichier xml androidplot

Could not find class 'com.androidplot.xy.XYPlot', referenced from method com.androidplot.xy.SimpleXYPlotActivity.onCreate 

Aidez-moi à trouver une solution ...

Mon code xml est ..

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent"> 
<com.androidplot.xy.XYPlot 
     android:id="@+id/mySimpleXYPlot" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_marginTop="10px" 
     android:layout_marginLeft="10px" 
     android:layout_marginRight="10px" 
     title="A Simple XYPlot Example"/> 
</LinearLayout> 

Répondre

0

Habituellement cela signifie que vous n'avez pas le fichier androidplot dans le répertoire/libs de votre projet, ou si vous utilisez un IDE comme IntelliJ ou Eclipse avec ADT, vous n'avez pas explicitement ajouté le fichier jar à votre classpath.

De plus, si vous utilisez Androidplot 0.5.1 ou ultérieur, vous devrez changer cette ligne:

title="A Simple XYPlot Example" 

à

androidPlot.title="A Simple XYPlot Example"