2 u014722754 u014722754 于 2014.12.15 16:12 提问

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

2个回答

devmiao
devmiao   Ds   Rxr 2014.12.15 16:21

当你在Eclipse引用不同版本JDK工程时会发生该问题。由于你开发环境中应用了多个版本的JDK 或JRE导致的。Eclipse会按照最初的开发环境默认选择对应的Jre。如Eclipse上有jdk1.4开发的环境工程,当你在引入高版本jdk1.6开发的工程时,以上问题就出现了。

问题解决的方案如下:

进入window\preferences\java\Installed JREs
按Add --> Browse...--->选择jre安装路劲(我的jre路径是D:\Program Files\Java\jre1.6.0_02)--->OK
找到你的工程右键点击Properties选项 出现对话框后 选择右边的Libraries选项卡 ---> 单击Add 了Library...--->

选择Jre System Library... ---> Next--->选择Alternate Jre 下的对应版本jre --> Finish ---> Ok

以上问题就可解决。

u014722754
u014722754   2014.12.15 19:47

什么情况,两个错误变成118个啦!!!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!