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

mContext.getExternalFilesDir("") must not be null #45

Open
ccc469 opened this issue Dec 15, 2020 · 1 comment
Open

mContext.getExternalFilesDir("") must not be null #45

ccc469 opened this issue Dec 15, 2020 · 1 comment

Comments

@ccc469
Copy link

ccc469 commented Dec 15, 2020

麻烦帮忙看下,在安卓5.0以下的设备中出现该问题

W/ContextImpl( 5120): Unable to create external files directory
E/MethodChannel#flutter_app_upgrade( 5120): Failed to handle method call
E/MethodChannel#flutter_app_upgrade( 5120): java.lang.IllegalStateException: mContext.getExternalFilesDir("") must not be null
E/MethodChannel#flutter_app_upgrade( 5120): at com.flutter.flutter_app_upgrade.FlutterAppUpgradePlugin.onMethodCall(FlutterAppUpgradePlugin.kt:62)
E/MethodChannel#flutter_app_upgrade( 5120): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#flutter_app_upgrade( 5120): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter_app_upgrade( 5120): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#flutter_app_upgrade( 5120): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter_app_upgrade( 5120): at android.os.MessageQueue.next(MessageQueue.java:132)
E/MethodChannel#flutter_app_upgrade( 5120): at android.os.Looper.loop(Looper.java:124)
E/MethodChannel#flutter_app_upgrade( 5120): at android.app.ActivityThread.main(ActivityThread.java:5136)
E/MethodChannel#flutter_app_upgrade( 5120): at java.lang.reflect.Method.invokeNative(Native Method)
E/MethodChannel#flutter_app_upgrade( 5120): at java.lang.reflect.Method.invoke(Method.java:525)
E/MethodChannel#flutter_app_upgrade( 5120): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/MethodChannel#flutter_app_upgrade( 5120): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/MethodChannel#flutter_app_upgrade( 5120): at dalvik.system.NativeStart.main(Native Method)

@LaoMengFlutter
Copy link
Owner

好的,我看下。

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