新人求教:为什么将自动生成的java代码导入eclipse之后出错?
本帖最后由 江上 于 2017-8-20 08:58 编辑完整的错误为:
1. The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project Eclipse_ZhiNeng1 Unknown Java Problem
2. The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files GosBaseActivity.java /Eclipse_ZhiNeng1/src/com/gizwits/opensource/appkit/CommonModule line 1 Java Problem
第二个错误提供了错误的位置,去那个文件查看:
发现似乎是找不到java自带的包了,但是我重新编译其他程序的时候,是可以找到包的,所以非常疑惑。
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) 你好,对于你提出的问题。你可以看看sdk是否安装,还有打开java,必须要有一个关于java的解析包。
页:
[1]