安卓:类型java.lang.Enum中不能得到解决类型、java、Enum、lang

2023-09-13 01:39:51 作者:嘫洏

我下载了Android的浏览器项目(从GIT)和其导入到Eclipse。由于以下错误,我却无法构建它:

I downloaded Android's Browser project (from git) and imported it to Eclipse. I cannot build it however because of the following error:

的类型java.lang.Enum中不能   解决了。这是间接引用   从所需的.class文件

The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files

现在......这是一个发展的环境已经工作得很好了其他项目:

Now... this is a development environment that has been working very well for other projects:

在Windows 7旗舰版64位。 在JDK的64位(JDK-6u23-窗口-x64.exe程序安装。) 在Eclipse的经典3.6 64位(eclipse-SDK-3.6.1-win32-x86_64.zip) 在Android 2.3的SDK入门包

所以,我不知道哪里出了问题可能在于。

So I am not sure where the problem could lie.

我要如何解决这个问题?

How do I solve this?

推荐答案

目前最好的,您的构建路径是搞砸了。用鼠标右键单击在项目名称,选择构建路径>配置 构建从上下文菜单路径。这带来了项目属性窗口的构建路径部分,在排序和导出选项卡。如果Android的JAR文件没有被选中,选中它,然后关闭属性窗口。

At best, your build path is messed up. Right-click over the project name, and choose Build Path > Configure Build Path from the context menu. This brings up the build path portion of the project properties window, on the "Order and Export" tab. If the Android JAR is not checked, check it, then close the properties window.

在最坏情况下,你想从SDK,这是不可能的工作纯粹是构建这个项目,因为很少的AOSP应用程序被设计为完整的固件版本以外建造的。

At worst, you are trying to build this project purely from the SDK, which is unlikely to work, because few of the AOSP apps are designed to be built outside of the full firmware build.