转换为 Dalvik 格式失败,错误 1 ​​- 导出 APK [英] Conversion to Dalvik format failed with error 1 - Exporting APK

查看:32
本文介绍了转换为 Dalvik 格式失败,错误 1 ​​- 导出 APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为项目导出一个 apk,但每次导出时我都会收到一条错误消息,说转换为 Dalvik 格式失败,错误为 1.我之前在处理同一个项目时遇到过这个错误,当我得到它时,我转到项目文件夹并从文件夹 bin 内的文件夹类中删除 jars但在导出 APK 时它不起作用有人可以帮我吗?

I want to export an apk for the project but each time i export i got an error saying Conversion to Dalvik format failed with error 1. I faced this error before while working on same project and when i get it I go to the project folder and delete jars from folder classes inside folder bin but in Exporting APK It doesn't work Can anyone help me ?

推荐答案

一般来说,我对转换为 Dalvik 格式失败并出现错误 1"的经验是,您需要清理项目(如果您从菜单 Project -> 清洁...)这通常可以解决问题.同样右键单击要导出的项目,然后单击 Properties -> Android Tools -> Fix Project properties.

Generally my experience with 'Conversion to Dalvik format failed with error 1' is that you need to do a project clean (if you use eclipse them from menu Project -> Clean ... ) this usually fixes the problem. Also right click on the project you want to export then Properties -> Android Tools -> Fix Project properties.

如果这对您没有帮助,则使用终端转到项目路径

If this doesn't help you then with terminal go to the project path

cd /home/username/your_project_path

然后

rm -fr bin/*

注意:您可能需要重新启动 eclipse 或至少选择项目并刷新它(F5).

Note: you may need to restart eclipse or at least select the project and refresh it (F5).

希望对你有帮助,如果还是不行,请告诉我

Hope this will help you, if still doesn't , please let me know

这篇关于转换为 Dalvik 格式失败,错误 1 ​​- 导出 APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆