Eclipse图形布局无法显示AD浏览报布局、图形、Eclipse、AD

2023-09-05 07:55:15 作者:谢师宴

我从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

 
精彩推荐
图片推荐