Issue in achartengine jar file

后端 未结 3 1154
既然无缘
既然无缘 2021-01-14 15:36

I have created an app in which I have used achartengine to construct the graph. It was running ok, but today I saw an update for android SDK to r

3条回答
  •  清酒与你
    2021-01-14 16:09

    I just had a similar issue with ADT version 20 in Eclipse.

    Why the error?

    The demo project source and project are meant to be used with an earlier version of the ADT plugin.

    Starting in either ADT 19 or 20, ADT began automatically setting up all of the JAR files that you place in the libs/ folder (note libs/, not lib/) as "Android Dependencies", rather than "Reference Libraries" (which you get when you right-click on a jar file and "Add to build path...".

    Because of this change, the project file included with the AChartEngine sample project is outdated.

    To use the sample code with ADT 20, take the following steps:

    1. Download and unzip the achartengine-1.0.0-demo-source.zip from the AChartEngine website. (Which is back up after suffering a catastrophic server breakdown, so kudos to them)
    2. Delete the .project and .classpath from the achartengine-1.0.0-demo
    3. In Eclipse, go to File>New...>Project...>Android Project from Existing Code
    4. Select "Browse..", and navigate to the directory that you unzipped the demo code to.
    5. Select "Copy project into workspace" (not strictly necessary, but the easiest)
    6. Select Finish.

    Now, plug in your device, boot up your emulator, and run it!

    Also, if you select the green "Run" button on the toolbar, and it throws an error similar to "Could not find a previous configuration" (something like that, though the wording was more cryptic),

    1. Click on the project in the package explorer
    2. Click the black down arrow next to the "Run" button
    3. Mouse over to "Run as", and select "Android Application"

    Enjoy the charts!

提交回复
热议问题