android导入spring的jar包后发生NoClassDefFoundError异常
android导入spring的jar包后发生NoClassDefFoundError错误?通过Build path--configure build path--add
android导入spring的jar包后发生NoClassDefFoundError错误?
通过Build path-->configure build path-->add Library-->user library-->New-->...-->add jars导入spring-2.5.6.jar和spring-webmvc-2.5.6.jar.jar文件是放在工程目录下的。
在以下代码处发生错误:
Java codeApplicationContext applicationContext = new ClassPathXmlApplicationContext( "invoker-client.xml");
XML code11-16 07:11:57.685: ERROR/AndroidRuntime(1555): java.lang.NoClassDefFoundError: org.springframework.context.support.ClassPathXmlApplicationContext
试过新建libs 文件夹,包放到这个目录下,右键 Build Path -> Use as source folder,编译不通过;
把jar文件放在assets目录下也不行;
project-->clean-->...也不行。
有碰到过这种情况的吗,请教解决办法?
[解决办法]右键 Build Path -> Use as source folder,编译不通过;
把jar文件放在assets目录下也不行;
project-->clean-->...也不行。
[解决办法]我之前也碰到过这种问题,貌似DVM上面确实是外部导入JRE里面的包无法运行,不知道是不是JVM和DVM区别的原因,等待高人解决。
[解决办法]google api 中没有这个。
[解决办法]