问题描述
- Unknown Android Target Problem
-
Description Resource Path Location Type
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 com.WifiDistanceTestReferencePoints.MainActivity Unknown Java Problem
Description Resource Path Location Type
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files ThreahWifiCollecting.java /com.WifiDistanceTestReferencePoints.MainActivity/src/com/wifisignalTestCp22 line 1 Java Problem
Description Resource Path Location Type
Unable to resolve target 'android-14' until the SDK is loaded. com.WifiDistanceTestReferencePoints.MainActivity Unknown Android Target Problem
解决方案
当你在Eclipse引用不同版本JDK工程时会发生该问题。由于你开发环境中应用了多个版本的JDK 或JRE导致的。Eclipse会按照最初的开发环境默认选择对应的Jre。如Eclipse上有jdk1.4开发的环境工程,当你在引入高版本jdk1.6开发的工程时,以上问题就出现了。
问题解决的方案如下:
进入windowpreferencesjavaInstalled JREs
按Add --> Browse...--->选择jre安装路劲(我的jre路径是D:Program FilesJavajre1.6.0_02)--->OK
找到你的工程右键点击Properties选项 出现对话框后 选择右边的Libraries选项卡 ---> 单击Add 了Library...--->
选择Jre System Library... ---> Next--->选择Alternate Jre 下的对应版本jre --> Finish ---> Ok
以上问题就可解决。
解决方案二:
什么情况,两个错误变成118个啦!!!
时间: 2024-10-26 20:06:26