【发布时间】:2014-10-09 12:03:51
【问题描述】:
我从 Eclipse Helios 更新到 Eclipse Juno,将 Android SDK 工具更新到 v23,以及 Google Play lib 4.4。
由于它们,我无法在 Eclipse 图形布局窗口中查看 XML 布局。我收到以下错误。
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
该错误仅在我在布局中添加 Google AdView XML 时显示,其他明智的图形布局工作正常。
<?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>
任何帮助将不胜感激。
【问题讨论】:
标签: android eclipse layout adview