---
title: "Android NoClassDefFoundError"
author: "逍遥一狂"
date: "2012-08-15T17:21:41Z"
tags: []
categories: ["移动开发"]
slug: "android-noclassdeffounderror"
draft: false
lastmod: "2012-08-15T17:21:41Z"
id: 1633129
url: "https://xyyk.iteye.com/blog/1633129"
---

貌似这是Eclispe或者ADT的一个Bug

工程目录下有个隐藏文件.classpath，修改这个文件，确保有红色部分

 

 

        &lt;classpathentry exported="true" kind="lib" path="lib/charts4j-1.3.jar"/&gt;

&lt;classpathentry exported="true" kind="lib" path="lib/commons-codec.jar"/&gt;

&lt;classpathentry exported="true" kind="lib" path="lib/commons-httpclient-3.1.jar"/&gt;

&lt;classpathentry exported="true" kind="lib" path="lib/commons-logging-1.1.jar"/&gt;

&lt;classpathentry exported="true" kind="lib" path="lib/MapApi.jar"/&gt;

&lt;classpathentry exported="true" kind="lib" path="lib/jdom-1.1.2.jar"/&gt;