android - "java/awt/font/NumericShaper.class"处理有问题,无法生成apk

标签 android dalvik

由于这个错误,我无法为 Dalvik VM 编译我的 Android 项目:

trouble processing "java/awt/font/NumericShaper.class":Attempt to include a core VM class in 
something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2010-03-05 16:33:23 - Notepadv2]1 error; aborting
[2010-03-05 16:33:23 - Notepadv2]Conversion to Dalvik format failed with error 1

我想我以某种方式搞砸了我的导入,但这个类从未出现在我的导入中。

最佳答案

我找到了问题的答案 here .有时,如果您只是简单地使用 eclipse 中的修复项目设置功能,似乎是这样。 Eclipse 会将第二个 android jar 放入您的源代码树中。我在谷歌库下找到了一个 android.jar 和另一个。我删除了一个并消除了错误。

关于android - "java/awt/font/NumericShaper.class"处理有问题,无法生成apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2387897/

相关文章:

android更改选项菜单文本颜色

java - setSupportProgressBarInminatedVisibility 抛出 NPE(支持 V7 修订版 21.0.1)

android - 方法错误太多

android - 将 JUnit 测试移植到 Android 测试框架

android - 我是否必须在每个线程或每个使用/类的基础上关闭 Realm ?

android - 无法在Android Studio中运行应用

SurfaceView 上的纵向 Android 相机

android - Multidexing android 应用程序的缺点

android - 何时何地调用 GC_CONCURRENT?

java - Dalvik 运行时编译器或其他方式,在运行时加载类