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

[image_picker]: java.lang.IllegalArgumentException - Couldn't find meta-data for provider with authority #123381

Open
rohansohonee1 opened this issue Mar 24, 2023 · 5 comments
Labels
a: production Issues experienced in live production apps c: crash Stack traces logged to the console needs repro info Automated crash report whose cause isn't yet known p: image_picker The Image Picker plugin. P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team

Comments

@rohansohonee1
Copy link

Crash stack trace:

Caused by java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.agendaboa.app.flutter.image_provider
       at androidx.core.content.FileProvider.getFileProviderPathsMetaData(FileProvider.java:664)
       at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:695)
       at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:645)
       at androidx.core.content.FileProvider.attachInfo(FileProvider.java:424)
       at android.app.ActivityThread.installProvider(ActivityThread.java:8210)
       at android.app.ActivityThread.installContentProviders(ActivityThread.java:7746)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7566)
       at android.app.ActivityThread.access$1500(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2177)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8653)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Steps to Reproduce

Unable to reproduce

Expected results:
Should not crash.

Actual results:
Application is crashing.

Device details:

Device
Brand:Samsung
Model:Galaxy A50
Orientation: Portrait
RAM free: 920.79 MB
Disk free: 63.71 GB
Operating System
Version:Android 11
Orientation: Portrait
Rooted:No
Crash
Date:Mar 19, 2023, 1:19:16 AM

Flutter details:

Flutter 3.3.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 52b3dc25f6 (5 months ago) • 2022-11-09 12:09:26 +0800
Engine • revision 857bd6b74c
Tools • Dart 2.18.4 • DevTools 2.15.0

Image picker version:

image_picker: 0.8.6

Currently this issue has 1 crash event affecting 1 user.

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Mar 24, 2023
@darshankawar
Copy link
Member

Thanks for the report @rohansohonee1
Without a concrete reproducible code, it'll be tough to make this issue actionable.
Looking at the error log, it may be related to how the manifest file is setup and could be misconfigure, but this is just my guess.
Maybe check this SO link and see if it helps in your case or not.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 24, 2023
@rohansohonee1
Copy link
Author

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 27, 2023
@darshankawar
Copy link
Member

See below links and check if they help:

#84324 (comment)
#84324 (comment)

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 27, 2023
@rohansohonee1
Copy link
Author

The manifest file has the following:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<queries>
        <intent>
            <action android:name="android.media.action.IMAGE_CAPTURE" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent>
</queries>

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 28, 2023
@darshankawar
Copy link
Member

Thanks for the update. Keeping this issue open for team's thoughts and attention.

@darshankawar darshankawar added c: crash Stack traces logged to the console platform-android Android applications specifically p: image_picker The Image Picker plugin. package flutter/packages repository. See also p: labels. a: production Issues experienced in live production apps needs repro info Automated crash report whose cause isn't yet known and removed in triage Presently being triaged by the triage team labels Mar 28, 2023
@stuartmorgan stuartmorgan added the P2 Important issues not at the top of the work list label Mar 28, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: production Issues experienced in live production apps c: crash Stack traces logged to the console needs repro info Automated crash report whose cause isn't yet known p: image_picker The Image Picker plugin. P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team
Projects
None yet
Development

No branches or pull requests

4 participants