【问题标题】:NoClassDefFoundError BoxedUnit on scala for Android [duplicate]NoClassDefFoundError BoxedUnit on scala for Android [重复]
【发布时间】:2013-06-15 10:05:10
【问题描述】:

将我的 eclipse 安装更新到 Android 插件 SDK 22.0.1、Scala 3.0.1 rc01 后,我的项目已编译但出现以下运行时错误:

E/AndroidRuntime(2195): FATAL EXCEPTION: main
E/AndroidRuntime(2195): java.lang.NoClassDefFoundError: scala.runtime.BoxedUnit
E/AndroidRuntime(2195):     at ******.MyClass$lzycompute(MyClass.scala:25)

我还有一个错误:

E/AndroidRuntime(2195): java.lang.NoClassDefFoundError: scala.collection.immutable.List

我的项目分为库项目和实施项目。

这是怎么发生的?

【问题讨论】:

标签: android eclipse scala noclassdeffounderror


【解决方案1】:

嗯,事实是项目组织发生了一点变化。 所以现在,还有一个字段“Android Private Libraries”也需要导出。默认情况下它不是。勾选此框为我解决了问题。

注意,Android 库项目和真实项目 (GraphismeOne) 都需要这样做

【讨论】:

    猜你喜欢
    • 2015-11-24
    • 2013-05-12
    • 1970-01-01
    • 1970-01-01
    • 2013-05-13
    • 1970-01-01
    • 2016-04-18
    • 2012-09-24
    • 2017-11-07
    相关资源
    最近更新 更多