Android:转换为Dalvik格式失败:无法执行dex:null [英] Android: Conversion to Dalvik format failed: Unable to execute dex: null
问题描述
我正尝试在Android上使用 SmugFig SmugMug API。它是为J2SE设计的,我想象,所以我不知道它甚至可以在Android上工作,但我认为这是值得尝试,而不是试图创建我自己的API。
I'm trying to use the SmugFig SmugMug API on Android. It was designed for J2SE I would imagine, so I'm not sure it will even work on Android, but I figured it was worth trying as opposed to trying to create my own API.
当我加载项目时,我收到以下错误:
When I load the project though, I get the following error:
Conversion to Dalvik format failed: Unable to execute dex: null
它不说什么包它失败了,只是Android包装问题,但它没有这样做之前,我添加SmugFig和它的依赖JARS到构建路径。
It doesn't say what package it fails on, just "Android Packaging Problem", but it did not do this before I added SmugFig and it's dependency JARS to the build path.
我应该在哪里看?或者这主要是我,它不会与这些图书馆一起工作?
Where should I look? Or does this mainly me that it just won't work with those libraries?
推荐答案
我发现一个博客条目,在eclipse.ini中分配的内存为:
-Xms128m
-Xmx512m
或更高的东西,但这并没有为我做。
I found a blog entry that says increase the memory allocated in eclipse.ini to this: -Xms128m -Xmx512m or something higher, but this didn't do it for me.
然而,我发现另一篇文章建议做项目>清洁,并为我修复。
我认为当您关闭Eclipse时,首先关闭模拟器。相当跛脚的bug今天早晨花了几个小时挖掘解决方案... grrrrrrr: - (
However, I found another post that suggested doing Project > Clean and that fixed it for me. I think it happens when you shut down Eclipse w/o shutting the emulator down first. Pretty lame bug. Spent a few hours digging for the solution this morning...grrrrrrr :-(
这篇关于Android:转换为Dalvik格式失败:无法执行dex:null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!