eclipse Android 导出给出“转换为 Dalvik 格式失败错误 1”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5564816/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android export give a "Conversion to Dalvik format failed error1"
提问by Sam
When i try to export my android project i'm getting the following eclipse error message "Conversion to Dalvik format failed error1""
当我尝试导出我的 android 项目时,我收到以下 Eclipse 错误消息“转换为 Dalvik 格式失败 error1””
i try the following steps but no luck..
我尝试了以下步骤,但没有运气..
- Project ? Clean
- add
-Xms128m /-Xmx512m
toeclipse.ini
- Restarting Eclipse with the -clean option
- 项目 ?干净的
- 添加
-Xms128m /-Xmx512m
到eclipse.ini
- 使用 -clean 选项重新启动 Eclipse
Export Steps:
- Right click on project->export->android under that select the "export android application"
导出步骤:
- 右键单击项目->导出-> android 下选择“导出android 应用程序”
回答by vggonz
Disable "Build Automatically" on "Project Menu" and rebuild it manually (Right click on project -> Build project), then try to export the application again.
在“项目菜单”上禁用“自动构建”并手动重建它(右键单击项目 -> 构建项目),然后再次尝试导出应用程序。
Eclipse seems to conflict with export and compile simultaneously. So every time you need to export an APK, disable automatic build. It's safe to use it any other time.
Eclipse 似乎与导出和编译同时发生冲突。所以每次需要导出 APK 时,请禁用自动构建。其他时间使用它是安全的。
回答by Maksim Dmitriev
When I was exporting an unsigned application package, I ran into the same error. It worked for me.
当我导出一个未签名的应用程序包时,我遇到了同样的错误。它对我有用。