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

Exception: No such proxy method: NativeGalleryNamespace.NGMediaReceiveCallbackAndroid.OnMediaReceived(System.String) #300

Closed
ShenKang4181 opened this issue Oct 19, 2023 · 5 comments

Comments

@ShenKang4181
Copy link

when i use NativeGallery.GetImagesFromGallery( action );
This error occurs when you select a picture from the album and return to the software.

@yasirkula
Copy link
Owner

Can you update your plugin from GitHub? Can you reproduce this issue on a new project, as well? Are you using a custom build system of some sort that I should know of?

@ShenKang4181
Copy link
Author

I have used the latest version of the plug-in, and there is no problem in normal use in the new project. What can I do when I use the hybridclr, and I use it normally when I don't import the hybridclr. I think I should feedback this problem to the hybridclr, but I would be very grateful if I know about the hybridclr and find out what happened when this problem occurred.

@yasirkula
Copy link
Owner

Is the issue reproducible when adding hybridclr to the new project? If not, are you using a custom code stripping solution? The plugin comes with proguard.txt that should work with Gradle builds but if you're building from Android Studio or using some sort of other build solution, they you may need to add proguard filters to that solution manually: https://github.com/yasirkula/UnityNativeGallery/blob/master/.github/AAR%20Source%20(Android)/proguard.txt

@yasirkula
Copy link
Owner

Oh, or maybe adding Preserve attribute to NGMediaReceiveCallbackAndroid.OnMediaReceived function resolves the issue?

@ShenKang4181
Copy link
Author

Hybridclr will fix this problem. ⸜₍๑•⌔•๑₎⸝

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