比较来自世界各地的卖家的域名和 IT 服务价格

注释仅适用于 java 1.5 创建后端时更高 Google App Engine/JDK 1.8, 安装新 ADT/

我安装了新鲜 ADT:
http://developer.android.com/sdk/index.html?hl=sk
然后我安装了:


当我进入目录时 Eclipse readme, 有:

Eclipse 对项目发布的说明

释放 4.3.0 最新版本 29 可能 2013 当年

我创建了一个新鲜的应用程序 Android, 然后右键单击它 - > Google->生成 Google App Engine Backend, 这就是我得到的:


Description Resource Path Location Type
The import android.os.Build is never used MainActivity.java /A/src/com/uniquebullshit/a line 12 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageData.java /A-AppEngine/src/com/uniquebullshit/a line 22 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 21 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageData.java /A-AppEngine/src/com/uniquebullshit/a line 28 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 21 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageData.java /A-AppEngine/src/com/uniquebullshit/a line 29 Java Problem
The import android.support.v7.app.ActionBar is never used MainActivity.java /A/src/com/uniquebullshit/a line 4 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfo.java /A-AppEngine/src/com/uniquebullshit/a line 25 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfo.java /A-AppEngine/src/com/uniquebullshit/a line 33 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 46 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 46 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 98 Java Problem
The method setMaxResults/int/ in the type Query is not applicable for the arguments /Integer/ MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 95 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 112 Java Problem
Syntax error, 'for each' statements are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 105 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 127 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 126 Java Problem
The method listDeviceInfo/String, Integer/ in the type DeviceInfoEndpoint is not applicable for the arguments /null, int/ MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 142 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 142 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 74 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 73 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 76 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 75 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 77 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 76 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 81 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 77 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 140 Java Problem
Type mismatch: cannot convert from Object to DeviceInfo DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 143 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 119 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 139 Java Problem
Type mismatch: cannot convert from Object to DeviceInfo DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 154 Java Problem
There was a problem generating the API metadata for your Cloud Endpoints classes: com.google.api.server.spi.config.ApiConfigException: class com.uniquebullshit.a.MessageEndpoint has no @Api annotation. A-AppEngine Unknown Google App Engine Cloud Endpoints Problem Marker
Type mismatch: cannot convert from element type Object to DeviceInfo MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 144 Java Problem
Syntax error, 'for each' statements are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 144 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 33 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 34 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 31 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 32 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 35 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 39 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 34 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 35 Java Problem
Syntax error, 'for each' statements are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 60 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 65 Java Problem
The method setMaxResults/int/ in the type Query is not applicable for the arguments /Integer/ DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 51 Java Problem
Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 54 Java Problem
Type mismatch: cannot convert from Object to DeviceInfo DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 82 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 97 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 77 Java Problem
Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 78 Java Problem


如何处理它?

EDIT:
已邀请:

郭文康

赞同来自:

我在下面尝试过,它帮助了。

笔记 checkbox 名称
Use default compliance settings

, 如在专用部分 /蓝色/ 下面的图像。

如果它没有帮助,请尝试更改
Compiler compliance level

在其他级别上,单击“应用”,然后再次返回。

快网

赞同来自:

对我来说,旗帜

启用特定的项目设置

未安装。 我选择了它并通过菜单清理了项目

项目

.

郭文康

赞同来自:

Stulatsk提到的答案 [
https://coderoad.ru/1736730/
我决定了它。

在下面 Mac OS X

安装 Java 6 JDK

去 Eclipse > 设置

选择添加...从 Java > 放 JREs, 然后是标准 VM 并选择 '/System / Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ' 目录为 JRE home, 然后准备好了

董宝中

赞同来自:

有同样的问题。

我检查了这个版本 Java JDK 在下面 "Java Build Path".

我检查了符合性的水平 "Java Compiler".

我看着这个项目的边缘,看到了这一点 Java 未验证。 检查它是否允许问题 /一旦项目重建了/.

莫问

赞同来自:

确保初始级别相等 1.5 或更高。 看起来你正在使用旧版本 JDK.

要回复问题请先登录注册