0

我想在我的应用程序中使用文件资源管理器,因此在使用谷歌搜索时,我在 code.google.com 上找到了“ Android 文件对话框”。源代码的输出是一个 android 库,我已将其作为项目属性对话框中的“构建路径上的必需项目”包含在我的 Android 项目中。但是当我运行我的应用程序时,它给了我例外-

java.lang.NoClassDefFoundError: com.lamerman.FileDialog 

发生错误的行是-

Intent intent = new Intent(this, FileDialog.class);

此行在 Activity onCreate 方法中。

我什至在AndroidManifest.xml中添加了以下条目-

<activity android:name="com.lamerman.FileDialog" />

我在 Eclipse 中没有收到任何编译错误。

使用库运行应用程序时我是否遗漏了一些东西?

4

1 回答 1

1

按照此处提到的步骤单击Setting Up a Project to Use a Library。在这里,他们提到了如何将 jar 文件添加到库中。

如果您想将库项目添加到您的项目中,请按照此处提到的步骤单击Referencing a library project

于 2012-05-16T13:26:23.310 回答