Android Web 服务错误“转换为 Dalvik 格式失败,错误 1”;
我已经为此寻找解决方案,但当我清理项目或删除并将其导入回来或重新启动 Eclipse 时,我仍然遇到同样的错误。即使我已经尝试过“转换到 Dalvik 格式失败,外部 JAR 上出现错误 1”。
这是我一开始所做的。我已经创建了 android 项目并尝试将我的网络服务放入其中。 (wsdl) 我已经从 wsdl 生成了 java 类,它给了我一些可笑的错误。我通过简单地将 JDK 库添加到项目中来修复这些错误,因为我不在那儿。(有一些 jar 和 android(xy))现在我遇到“转换为 Dalvik 格式失败,错误 1”错误,并且无法修复它。
任何帮助都会很好。提前致谢
Possible Duplicate:
Conversion to Dalvik format failed with error 1 Solution?
I have looked for solutions for this but i still get this same error when I clean the project or delete and import it back or restarting the eclipse. Even i have tried "Conversion to Dalvik format failed with error 1" on external JAR this.
Here is what i did at the first place. I have created and android project and tried to put my webservice in it. (wsdl) I have generated the java classes from the wsdl and it gave me some ridiculous errors. I have fixed those errors by simply adding JDK library to the project because I wasnt there.(there were some jars and android(x.y)) Now Im having "Conversion to Dalvik format failed with error 1" error and cant fix it.
Any help would be nice. thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
右键单击您的项目,然后转到“属性”-->“构建路径”。确保您拥有清单中指定的 API 目标所需的 JAR。删除任何无关的内容。
接下来,在 Eclipse 主菜单中,单击 Project-->Clean,然后从列表中选择您的项目。
让我知道进展如何——应该会有帮助。
Right-click your project, and go to Properties-->Build Path. Make sure that you have the JARs necessary for the API target specified in your manifest. Delete anything extraneous.
Next, in the main Eclipse menu, click on Project-->Clean, and select your project from the list.
Let me know how that goes--should help.