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

Unhandled Exception: PlatformException(STORAGE_NOT_LEGACY, Use requestLegacyExternalStorage when your project is targeting above Android Q., null, null)[BUG] Error with something #311

Closed
CarminBack opened this issue Apr 27, 2022 · 4 comments
Labels
i: not following issue template This issue is not following issue template or not fill the correct content with the template. s: invalid This doesn't seem right.

Comments

@CarminBack
Copy link

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(STORAGE_NOT_LEGACY, Use requestLegacyExternalStorage when your project is targeting above Android Q., null, null)
E/flutter (30707): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter (30707): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:177:18)
E/flutter (30707):
E/flutter (30707): #2 PhotoManagerPlugin.requestPermissionExtend (package:photo_manager/src/internal/plugin.dart:68:24)
E/flutter (30707):
E/flutter (30707): #3 AssetPicker.permissionCheck (package:wechat_assets_picker/src/widget/asset_picker.dart:24:33)
E/flutter (30707):
E/flutter (30707): #4 AssetPicker.pickAssets (package:wechat_assets_picker/src/widget/asset_picker.dart:39:33)
E/flutter (30707):
E/flutter (30707): #5 Common.openPic (package:xapp/utils/common.dart:145:40)
E/flutter (30707):
E/flutter (30707): #6 _CreateWorldWallPageState._getImage (package:xapp/pages/faxian/child/createWorldWell.dart:61:38)
E/flutter (30707):

@CarminBack CarminBack added the await investigate The issue is waiting for further investigation. label Apr 27, 2022
@AlexV525
Copy link
Member

#28

@AlexV525 AlexV525 added s: invalid This doesn't seem right. and removed await investigate The issue is waiting for further investigation. labels Apr 27, 2022
@github-actions github-actions bot added the await triage The issue is waiting for triage. label Apr 27, 2022
@petermusembi69
Copy link

@CarminBack add this in your manifest

    <application
            android:requestLegacyExternalStorage="true"

@sleewok
Copy link

sleewok commented Jun 21, 2022

@CarminBack add this in your manifest

    <application
            android:requestLegacyExternalStorage="true"

This does not work when targeting SDK > 30

@AlexV525
Copy link
Member

TBH, the author of this issue, and the people who said "it's not working", should learn how to read documents and the example hard, since all of these are working fine. :)

@AlexV525 AlexV525 added i: not following issue template This issue is not following issue template or not fill the correct content with the template. and removed await triage The issue is waiting for triage. labels Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: not following issue template This issue is not following issue template or not fill the correct content with the template. s: invalid This doesn't seem right.
Projects
None yet
Development

No branches or pull requests

4 participants