收藏
回答

intent分享图片,微信抛出异常

Android App, 通过intent方式给微信分享图片,微信抛异常 手机系统版本:Android 11

2021-12-06 14:43:26.572 11240-11240/? E/WindowManager: android.view.WindowLeaked: Activity com.tencent.mm.ui.tools.ShareImgUI has leaked window DecorView@66a5ef7[ShareImgUI] that was originally added here
        at android.view.ViewRootImpl.(ViewRootImpl.java:740)
        at android.view.ViewRootImpl.(ViewRootImpl.java:724)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:399)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:110)
        at android.app.Dialog.show(Dialog.java:340)
        at com.tencent.mm.ui.widget.a.e.show(SourceFile:1159)
        at com.tencent.mm.ui.widget.a.g$a.show(SourceFile:578)
        at com.tencent.mm.pluginsdk.permission.b.a(SourceFile:197)
        at com.tencent.mm.ui.tools.ShareImgUI.bFt(SourceFile:228)
        at com.tencent.mm.ui.tools.ShareImgUI.fEy(SourceFile:131)
        at com.tencent.mm.pluginsdk.ui.AutoLoginActivity.onCreate(SourceFile:61)
        at com.tencent.mm.ui.tools.ShareImgUI.onCreate(SourceFile:139)
        at android.app.Activity.performCreate(Activity.java:8000)
        at android.app.Activity.performCreate(Activity.java:7984)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3409)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3600)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:368)
        at android.app.ActivityThread.main(ActivityThread.java:7710)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
最后一次编辑于  2021-12-06
回答关注问题邀请回答
收藏
登录 后发表内容