Eclipse Graphical Layout unable to display adView

与世无争的帅哥 提交于 2019-12-03 15:40:34

I still have a problem even change API to 19 based on a zhangxaochen's answer

I solve the problem after i Install JDK 1.7.

Java compiler in Windows -> Preferences -> Java -> compiler still use 1.6

I bet you are using Java JDK 1.6.

You have to go to Eclipse -> Window -> Preferences -> Java -> Compiler and set compiler to 1.7. Ofcourse you must have Java JDK 1.7 installed. If you don't, install it and the problem will dissappear.

At least that was the case with me.

I hope it helps!

I solved the problem just now by change the android version to use when rendering layouts to API 19, by default it's API 20:

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