简体   繁体   English

Eclipse Android项目Java Buid问题

[英]Eclipse Android Project Java Buid Issue

Just installed Eclipse Luna on a new computer with Ubuntu 14.10. 刚刚在装有Ubuntu 14.10的新计算机上安装了Eclipse Luna。

Copied my workspace over. 复制了我的工作区。

My projects will not build. 我的项目无法建立。 The Console continues to show "Java Problem." 控制台继续显示“ Java问题”。

For example one of the 500ish errors with Java Problem: 例如,Java问题中的500ish错误之一:

Animator cannot be resolved to a type   DefaultClusterRenderer.java /library/src/com/google/maps/android/clustering/view    line 882    Java Problem

And it says the same "Java Problem" for about 500 more lines. 它说相同的“ Java问题”大约需要500行。

I have: 我有:

/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

as my java path and I also have a copy of the JRE folder with contents within the eclipse folder. 作为我的java路径,我也有一个JRE文件夹的副本,其内容在eclipse文件夹中。

What am I leaving out? 我遗漏了什么? My projects were building fine on my old computer. 我的项目在旧计算机上运行良好。

When importing a workspace into a new computer or version of Eclipse, make sure that your target build versions are the same as in your previous workspace. 将工作空间导入新计算机或Eclipse版本时,请确保您的目标构建版本与以前的工作空间相同。 This project required the Google Play Services Library and a Google Maps Library. 该项目需要Google Play服务库和Google Maps库。 Both of which had been marked with a target build of a deprecated version of Android. 两者均已标有不推荐使用的Android版本的目标版本。

Right clicking properties on your project and then selecting Android will allow you to change the build target as needed. 右键单击项目上的属性,然后选择Android,将允许您根据需要更改构建目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM