AdColony在Vungle广告期间导致Force关闭

时间:2016-03-31 18:59:31

标签: android admob adcolony vungle-ads

我有问题。我通过Admob中介实施了AdColony奖励广告。它自己工作。然后我通过Admob调解实施了Vungle奖励广告。问题是AdColony要求每个活动在重写(onPause,onResume)方法中使用AdColony.Pause()和AdColony.Resume()。几乎每次我运行Vungle广告时,我都会收到Force Close以及下面的信息 我发现我的技能并不那么复杂,因为我不知道如何处理它。插页式广告正常运作。问题仅在于奖励广告。任何人都可以建议如何处理它? 问题可能是新的,因为Google于2016年3月15日宣布了奖励广告调解。

03-31 20:38:42.869 19578-20093/? E/AndroidRuntime: FATAL EXCEPTION: Thread-107283
                                               Process: org.ovh.EmpireSTG, PID: 19578
                                               com.jirbo.adcolony.AdColonyException: AdColony.configure() must be called before any other AdColony methods. If you have called AdColony.configure(), the Activity reference you passed in via AdColony.configure()/AdColony.resume() is null OR you have not called AdColony.resume() as appropriate.
                                                   at com.jirbo.adcolony.a.b(SourceFile:181)
                                                   at com.jirbo.adcolony.a.e(SourceFile:222)
                                                   at com.jirbo.adcolony.AdColonyV4VCAd.<init>(SourceFile:40)
                                                   at com.jirbo.adcolony.AdColonyAdapter.a(SourceFile:427)
                                                   at com.jirbo.adcolony.AdColonyAdapter$9.run(SourceFile:485)
                                                   at java.lang.Thread.run(Thread.java:818)

1 个答案:

答案 0 :(得分:0)

在启动广告的活动中实施onResume和onPause确实对我有用:

@Override
protected void onResume()
{
  super.onResume();
  if (AdColony.isConfigured()) AdColony.resume( this );
}

@Override
protected void onPause()
{
  super.onPause();
  if (AdColony.isConfigured()) AdColony.pause();
}