开发者

could not find class, No class definition found

开发者 https://www.devze.com 2023-04-12 16:20 出处:网络
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 reco

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

精彩评论

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