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

Attempt to invoke virtual method android.content.res.XmlResourceParser with image_picker #28550

Closed
signshah opened this issue Feb 27, 2019 · 13 comments
Assignees
Labels
c: crash Stack traces logged to the console p: image_picker The Image Picker plugin. package flutter/packages repository. See also p: labels. platform-android Android applications specifically

Comments

@signshah
Copy link

signshah commented Feb 27, 2019

Steps to Reproduce

  1. .Create new project
  2. Add all the latest dependencies of firebase and image_picker
  3. Try to select image either by camera or gallery

Logs

Exception PlatformException(already_active, Image picker is already active, null)
@signshah
Copy link
Author

signshah commented Feb 27, 2019

I migrated to AndroidX and trying to use image_picker plugin. As and wen I try to open camera for the first time the application crashes and close. after that every try it shows error

PlatformException(already_active image picker is already active, null)
image_picker: ^0.5.0+3

Anybody faced this issue?

@zoechi zoechi added c: crash Stack traces logged to the console platform-android Android applications specifically plugin p: image_picker The Image Picker plugin. labels Feb 27, 2019
@zoechi zoechi added this to the Goals milestone Feb 27, 2019
@devilishWei
Copy link

PlatformException (PlatformException(error, Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference, null))

@cyanglaz cyanglaz self-assigned this Apr 28, 2019
@ovaldi
Copy link

ovaldi commented May 14, 2019

+1

1 similar comment
@Aricii
Copy link

Aricii commented May 27, 2019

+1

@cyanglaz
Copy link
Contributor

@ovaldi @Aricii Could you please add a thumbs up emoji to the original post, it helps us to triage the issues and set the priorities. In general, the more thumbs up an issue has, the more we prioritize it.

@duskmont
Copy link

After I use "flutter clean" to delete the "build" folder, it works.

@cyanglaz
Copy link
Contributor

Does @DuskMount 's suggestion work for everyone?

@lupming
Copy link

lupming commented Jun 23, 2019

@DuskMount I have no effect.

@signshah
Copy link
Author

@DuskMount Hey it looks like it got fixed for me as well. Now I am not seeing the issue.

@liu1023953303
Copy link

liu1023953303 commented Aug 29, 2019

After I use "flutter clean" to delete the "build" folder, it works.

It's work for me

@abdelhamid22
Copy link

After I use "flutter clean" to delete the "build" folder, it works.

thanks, its work

@wslaimin
Copy link

wslaimin commented Dec 2, 2019

+1

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console p: image_picker The Image Picker plugin. package flutter/packages repository. See also p: labels. platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests