我正在使用LeakCanary
版本1.4-beta2,我刚刚在我的应用中添加了Facebook sdk。更确切地说,我只在MyApplication类中添加了onCreate
中的代码:
FacebookSdk.sdkInitialize(getApplicationContext());
但是我从LeakCanary
收到了此错误:
In css.demo.debug:1.0:1.
* css.demo.main.projects.ProjectsActivity has leaked:
* GC ROOT static com.facebook.appevents.internal.ActivityLifecycleTracker.currentFuture
* references java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.callable * references java.util.concurrent.Executors$RunnableAdapter.task
* references com.facebook.appevents.internal.ActivityLifecycleTracker$4$1.this$0 (anonymous implementation of java.lang.Runnable)
* references com.facebook.appevents.internal.ActivityLifecycleTracker$4.val$activity (anonymous implementation of java.lang.Runnable)
* leaks css.demo.main.projects.ProjectsActivity instance
我该如何处理这个问题?在我的代码中某处有问题,我应该调查更多或者它与Facebook / LeakCanary代码有关,我应该提出问题吗?