You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.ComponentInfo.applicationInfo' on a null object reference
#33
Closed
slhaos opened this issue
Apr 17, 2020
· 7 comments
Failed to handle method call
E/MethodChannel#com.zt.shareextend/share_extend(32332): java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.ComponentInfo.applicationInfo' on a null object reference
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.os.Parcel.readException(Parcel.java:1960)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.os.Parcel.readException(Parcel.java:1900)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.content.pm.IPackageManager$Stub$Proxy.queryIntentActivities(IPackageManager.java:3621)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:944)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.app.ApplicationPackageManager.queryIntentActivities(ApplicationPackageManager.java:933)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at com.zt.shareextend.ShareUtils.grantUriPermission(ShareUtils.java:34)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at com.zt.shareextend.ShareExtendPlugin.share(ShareExtendPlugin.java:109)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at com.zt.shareextend.ShareExtendPlugin.onMethodCall(ShareExtendPlugin.java:61)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.os.MessageQueue.next(MessageQueue.java:379)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.os.Looper.loop(Looper.java:144)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at android.app.ActivityThread.main(ActivityThread.java:7529)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/MethodChannel#com.zt.shareextend/share_extend(32332): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
W/InputMethodManager(32332): startInputReason = 1
E/flutter (32332): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.ComponentInfo.applicationInfo' on a null object reference, null)
E/flutter (32332): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
E/flutter (32332): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
E/flutter (32332):
E/flutter (32332): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter (32332): #3 ShareExtend._shareInner (package:share_extend/share_extend.dart:62:21)
E/flutter (32332): #4 ShareExtend.share (package:share_extend/share_extend.dart:34:12)
E/flutter (32332): #5 _MyAppState.build. (package:share_extend_example/main.dart:49:35)
E/flutter (32332):
E/flutter (32332): #6 _MyAppState.build. (package:share_extend_example/main.dart)
E/flutter (32332): #7 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:772:19)
E/flutter (32332): #8 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:855:36)
E/flutter (32332): #9 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (32332): #10 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:504:11)
E/flutter (32332): #11 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:282:5)
E/flutter (32332): #12 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:217:7)
E/flutter (32332): #13 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:475:9)
E/flutter (32332): #14 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:76:12)
E/flutter (32332): #15 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:122:9)
E/flutter (32332): #16 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
E/flutter (32332): #17 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:120:18)
E/flutter (32332): #18 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:106:7)
E/flutter (32332): #19 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter (32332): #20 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter (32332): #21 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (32332): #22 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (32332): #23 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (32332): #24 _rootRunUnary (dart:async/zone.dart:1196:13)
E/flutter (32332): #25 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
E/flutter (32332): #26 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
E/flutter (32332): #27 _invoke1 (dart:ui/hooks.dart:275:10)
E/flutter (32332): #28 _dispatchPointerDataPacket (dart:ui/hooks.dart:184:5)
折腾一天了也没有成功希望作者能协助一下,在安卓的手机上
The text was updated successfully, but these errors were encountered: