我正在尝试从已经解压缩到工作场所的现有项目创建一个项目(在 eclipse ADT 上)。
我基本上遵循以下说明:
http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/
但是一导入项目,我就收到了这个不清楚的错误消息:
build path contains duplicate entry: 'src' for project 'AndroidPocketSphinx'
好吧,我检查了目录树:那里只有一个“src”子目录。
我也在这里找到了类似的帖子,但在我的环境中找不到建议的解决方案。也就是说,已经检查了目标名称(Android 不在资源下,顺便说一句,这是一种错觉)。所以这不可能是问题。
有趣的是,该项目确实出现在 Package Explorer 中:
没有错误,只有 19 个警告。
绝大多数警告是针对未使用的导入、值和字段,因此我可以忽略它们,但我不理解以下警告:
Description Resource Path Location Type
Build path specifies execution environment J2SE-1.3. There are no JREs installed in the workspace that are strictly compatible with this environment. AndroidPocketSphinx Build path JRE System Library Problem
所以我的问题是:
- 为什么我收到错误“构建路径包含重复条目:项目的'src'”?
- 如何修复 J2SE-1.3 执行环境警告?
谢谢
更新:这是项目.classpath
文件的内容:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="PocketSphinxDemo/libs/armeabi"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="jni"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.3"/>
<classpathentry kind="lib" path="libs/LIUM_SpkDiarization-3.1.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>