Libgdx setup UI gives 2 unexpected errors in new GWT project

若如初见. 提交于 2019-11-28 22:43:17

I had the same problem a couple of weeks ago and got around it by installing the GWT SDK.

Igor Rodriguez

I know that the post is old, but while the answer of @Rod was close to resolve my problem, it didn't fully. After installing the plugin in his answer I got 3 error messages instead of two: the same previous ones and a new one.

Looking inside the class that was giving the problem made Eclipse to point straight to the problem: the compiler compliance required to be 1.5 or greater but Eclipse had by default 1.4. I changed it through Window > Preferences > Java > Compiler > Compiler compliance level, where I put the correct one, 1.7, and everything compiled cleanly.

PS: Thanks @Rod

use the http://dl.google.com/eclipse/plugin/4.2 to install plugin on eclipse

instead of http://dl.google.com/eclipse/plugin/4.4 or 4.3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!