相关疑难解决方法(0)

Eclipse:语法错误,参数化类型仅在源级别为1.5时才有

我尝试使用以下代码:

ArrayList<String>
Map<String, String>
Run Code Online (Sandbox Code Playgroud)

Eclipse抱怨它们两者:语法错误,参数化类型仅在源级别为1.5时才会出现.

我使用JDK 1.6,但即使我去编译器并将合规性切换到1.5.它仍然给我这个错误.任何想法为什么?

java eclipse

41
推荐指数
7
解决办法
11万
查看次数

注释仅适用于生成Google App Engine后端(JDK 1.8,安装了新ADT)的Java 1.5及更高版本

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

在此输入图像描述

当我进入Eclipse自述文件目录时,有:

Eclipse Project发行说明

版本4.3.0最后修订日期为2013年5月29日

我创建了新的Android应用程序,然后右键单击它 - > Google-> Generate 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 …
Run Code Online (Sandbox Code Playgroud)

java eclipse google-app-engine android

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

eclipse ×2

java ×2

android ×1

google-app-engine ×1