【发布时间】:2012-07-02 16:55:06
【问题描述】:
我能够下载并导入适用于 android 的 moPub 库。按照 moPub 网站上的简单示例进行操作后,该应用程序在模拟器中运行良好。但是添加控件后eclipse查看器无法正常显示屏幕。
xml包含[基于示例]
<com.mopub.mobileads.MoPubView
android:id="@+id/adview"
android:layout_width="fill_parent"
android:layout_height="50px" />
当我尝试转到“图形布局”选项卡时导致以下错误
The following classes could not be instantiated:
- com.mopub.mobileads.MoPubView (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
虽然这更像是一种刺激而不是炫耀,但这是我宁愿做的事情。非常感谢您。
【问题讨论】: