Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformException #27

Closed
gxh-apologize opened this issue Mar 16, 2020 · 2 comments
Closed

PlatformException #27

gxh-apologize opened this issue Mar 16, 2020 · 2 comments

Comments

@gxh-apologize
Copy link

I/flutter (22346): ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════ I/flutter (22346): The following PlatformException was thrown while activating platform stream on channel I/flutter (22346): sk.fourq.ota_update: I/flutter (22346): PlatformException(error, Attempt to invoke virtual method 'java.lang.String I/flutter (22346): java.lang.Object.toString()' on a null object reference, null) I/flutter (22346): I/flutter (22346): When the exception was thrown, this was the stack: I/flutter (22346): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7) I/flutter (22346): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321:33) I/flutter (22346): <asynchronous suspension> I/flutter (22346): #2 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:517:29) I/flutter (22346): #4 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:503:64)

I use this plug which version is 2.2.1 , but a PlatformException occurs .Please give some suggests ,thanks.

@wrl96
Copy link

wrl96 commented Mar 24, 2020

The "destinationFilename" is required.
Stream<OtaEvent> execute(String url, {String androidProviderAuthority, String destinationFilename})

@gxh-apologize
Copy link
Author

@wrl96 The problem has been solved. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants