[英]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依赖关系”,回到第一个方框。
See this thread " Conversion to Dalvik format failed with error 1 " on external Jar 参见此线程“外部Jar上的“ 转换为Dalvik格式失败,错误1 ””
see also: Reason of Conversion to dalvik format failed with error 1 另请参阅: 转换为dalvik格式的原因失败,错误1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.