使用mopub进行资源泄漏

时间:2015-05-11 11:39:36

标签: android mopub

我正在使用mopub interstitial。一切都很好,但我一直看到:

Explicit termination method 'close' not called
        at dalvik.system.CloseGuard.open(CloseGuard.java:184)
        at java.io.FileInputStream.<init>(FileInputStream.java:78)
        at com.mopub.common.DiskLruCache.get(DiskLruCache.java:424)
        at com.mopub.common.CacheService.containsKeyDiskCache(CacheService.java:77)
        at com.mopub.mobileads.util.vast.VastManager.updateDiskMediaFileUrl(VastManager.java:105)
        at com.mopub.mobileads.util.vast.VastManager.onAggregationComplete(VastManager.java:74)
        at com.mopub.mobileads.util.vast.VastXmlManagerAggregator.onPostExecute(VastXmlManagerAggregator.java:66)
        at com.mopub.mobileads.util.vast.VastXmlManagerAggregator.onPostExecute(VastXmlManagerAggregator.java:18)
        at android.os.AsyncTask.finish(AsyncTask.java:632)
        at android.os.AsyncTask.access$600(AsyncTask.java:177)
        at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5221)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

仅当我加载插页式广告并执行以下步骤时才会发生这种情况:

  1. 打开应用
  2. 创建插页式广告的活动
  3. 创建插页式广告并开始加载
  4. onInterstitialLoaded被称为
  5. 将应用程序置于后台
  6. 活动被杀
  7. 将应用程序带到前台
  8. 活动已恢复
  9. 应用&#34;泄漏&#34;
  10. 我在活动的onDestroy中调用插页式广告的破坏

    你知道我可能缺少什么来解决这个问题吗?

0 个答案:

没有答案