简体   繁体   English

java.lang.NoClassDefFoundError:android + maven + eclipse

[英]java.lang.NoClassDefFoundError: android + maven + eclipse

I know there are a lot of stackoverflow questions regarding this subject. 我知道关于此主题有很多stackoverflow问题。 But none of them seem to do it for me. 但是他们似乎都没有为我做这件事。 This is my pom.xml file: http://pastebin.com/00ne7fHA 这是我的pom.xml文件: http : //pastebin.com/00ne7fHA

I've unchecked the Resolve dependencies for workspace projects in the maven project properties 我在maven项目属性中未选中Resolve dependencies for workspace projects的“ Resolve dependencies for workspace projects

And when I try to run the application on the connected android device I get this error: 当我尝试在连接的android设备上运行应用程序时,出现此错误:

java.lang.NoClassDefFoundError: android.support.v4.app.Fragment 

If I check 'Maven dependencies' in Build Path > Order and Export and then try to run, I get the following console error: 如果我在“ Build Path > Order and Export ”中选中“ Maven依赖项”,然后尝试运行,则会收到以下控制台错误:

Conversion to Dalvik format failed with error 1

If I then update the maven project, 'Maven Dependencies' in Build Path > Order and Export are unchecked and I'm back to square one. 如果随后我更新了Maven项目,则未选中“ Build Path > Order and Export ”中的“ Maven依赖关系”,回到第一个方框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM