开发者

could not find class, No class definition found

I'm getting Could not f开发者_JS百科ind class and No class definition found error in Android

Those classes is inside the jar files. I've added the jar files in a separate folder, but it is not recognized at runtime.


The JAR isn't in the CLASSPATH. That error means that the class loader can't find it. Don't believe your eyes; believe the class loader.


@ddffymo is right.

Have you configure the Build Path? If not here is a way to configure it along with library.

  1. create lib or libs folder inside your project structure and then add that library file(JAR) inside this folder.
  2. Right click on this JAR file, select Build Path -> Add to Build Path.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜