2017-11-06 4 views
0

私はAndroidの開発から始めました。今日私は奇妙なLogCatエラーに気づいた。私はいつ私が私のアプリにそれを導入し、どのようにこれを修正する手がかりを導入したのか分かりません。LauncherがIntentReceiverを流出しました - BroadcastReceiverをまったく使用していません

BroadcastReceiverの登録/登録解除と関係があるようです。

私の問題ist - 私はこのコンセプトをどこにも使用しません(それを調べていない)。完全に空のアクティビティを除いて、私のプロジェクトからすべてのコードを削除しました。

はまだ - 私は私のデバイス上で私のプロジェクトを起動すると、エラーがポップアップ表示されます:

11-06 19:02:13.691 4039-4039/? E/ActivityThread: Activity com.android.launcher2.Launcher has leaked IntentReceiver [email protected] that was originally registered here. Are you missing a call to unregisterReceiver()? 
               android.app.IntentReceiverLeaked: Activity com.android.launcher2.Launcher has leaked IntentReceiver [email protected] that was originally registered here. Are you missing a call to unregisterReceiver()? 
                at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1222) 
                at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:993) 
                at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1348) 
                at android.app.ContextImpl.registerReceiver(ContextImpl.java:1328) 
                at android.app.ContextImpl.registerReceiver(ContextImpl.java:1322) 
                at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:630) 
                at com.android.launcher2.Launcher.onResume(Launcher.java:1081) 
                at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1277) 
                at android.app.Activity.performResume(Activity.java:7101) 
                at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3821) 
                at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3885) 
                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3051) 
                at android.app.ActivityThread.-wrap14(ActivityThread.java) 
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1642) 
                at android.os.Handler.dispatchMessage(Handler.java:102) 
                at android.os.Looper.loop(Looper.java:154) 
                at android.app.ActivityThread.main(ActivityThread.java:6776) 
                at java.lang.reflect.Method.invoke(Native Method) 
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496) 
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386) 

おそらくそれの原因である可能性がありますか?私は、Android Studioの3.0に(プロジェクト)をアップグレードした後、他の誰がこの問題に遭遇念の

答えて

0

...

それが発生しました。 私は本当に問題が何かを知りませんでしたが、私の最後の絶望的な試みで、私はちょうど新しいプロジェクトを作り、すべてのソースとリソースをコピーしました。

低いと見よ!エラーはなくなりました。

関連する問題