Eclipse图形布局无法显示AD浏览报 [英] Eclipse Graphical Layout unable to display adView

查看:374
本文介绍了Eclipse图形布局无法显示AD浏览报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Eclipse的赫利俄斯更新到Eclipse的Juno,更新的Andr​​oid SDK工具,V23,和谷歌播放LIB 4.4。

I updated from Eclipse Helios to Eclipse Juno, updated Android SDK tools to v23, and Google Play lib 4.4.

因为他们,我无法查看XML布局在Eclipse图形布局窗口。我得到以下错误。

Since them i am unable to view XML layouts in eclipse Graphical Layout Window. I get following error.

Exception raised during rendering: com/google/android/gms/ads/AdView : Unsupported major.minor version 51.0
Exception details are logged in Window > Show View > Error Log

错误日志

Could not create the view: org.eclipse.pde.runtime.LogView

该错误只显示当我加入谷歌AD浏览报XML的布局,其他明智的图形布局工作正常。

The error only shows when i add Google AdView XML in Layout, other wise Graphical Layout works fine.

<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  xmlns:ads="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent" >

    <com.google.android.gms.ads.AdView
        android:id="@+id/adView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        ads:adSize="BANNER"
        ads:adUnitId="xxxxxxxxxxxxxxxxxxxxxxxx" />

</RelativeLayout>

任何帮助将是AP preciated。

Any help would be appreciated.

推荐答案

我还有一个问题,更是以一个zhangxaochen的回答更改API来19

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

我解决这个问题,我安装JDK 1.7之后。

I solve the problem after i Install JDK 1.7.

Java编译器在Windows - > preferences - >爪哇 - >编译器仍然使用1.6

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

这篇关于Eclipse图形布局无法显示AD浏览报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆