Exceptions after UUM-30243 fix

Hello everyone!

Sorry, if it’s not the right place for such questions.

I believe there is an issue with this fix.

After updating to one of the versions including the fix, my private proxy methods are no longer being invoked. Also, there is an exception: “No such proxy method” in the console.

If you look at the method public virtual AndroidJavaObject Invoke(string methodName, object[ ] args) of class UnityEngine.AndroidJavaProxy there you can find the following call: MethodInfo[ ] methods = this.GetType().GetMethods(); As stated here: Returns all the public methods of the current Type.

Before this fix, Unity used to search for private methods as well.

So my suggestion is to replace this call with the following one: MethodInfo[ ] methods = this.GetType().GetMethods(bindingAttr); which fixes everything for me.

Thanks in advance!

Hi @DNHND ! Has this change caused a regression for you?? If so, please report a bug by clicking on Help > Report a Bug on the editor, and we will look into it.

If you are able create a minimal reproducible project with a small script that uses AndroidJavaObject for private methods, it will speed up our process quite a bit.

Thanks!!

@manugil , hi! Thanks a lot for your guidance. I’ve reported a bug and attached the project there.

1 Like

This may be causing problems with Unity Purchasing’s package too…

1 Like

Hi, does it relate to the error?
Exception: No such proxy method: UnityEngine.Purchasing.GooglePurchaseUpdatedListener.onPurchasesUpdated(UnityEngine.AndroidJavaObject,null)

1 Like

Hey @i9mobile and @hippogames , Great news! A fix for this specific issue is on the way and will be available soon. You can keep track of its progress as it gets merged into the various Unity versions on our issue tracker.

→ Link to issue tracker (UUM-44752)

The issue is fixed for:

  • 2021.3.31f1
  • 2022.3.10f1
  • 2023.1.13f1
  • 2023.2.0b9
  • 2023.3.0a1
1 Like

Hey. Could you please let us know when it will be available approx? Also does upgrading to Unity 2022.4 solve the issue for now?

You can also pick any version with no UUM-30243 like 2021.3.28 or 2022.3.4. I’ve checked both.

Thank you

What do you think about 2022.3.8f1 ?

2022.3.8f1 have the issue as well. Will try 2022.3.4

2022.3.4 works without issue, I can confirm too. Thanks for you reply once again

waiting for it!

Could someone tell me why this issue marked as “Resolved”?..
I still have to use Unity 2022.3.4f1 LTS because all later releases have the same bug.

Hi manugil, Could you please add information to the tracker that all LTS versions from 2022.3.5f1 through 2022.3.9f1 contain the same issue?

And also is it possible to tell when it could be fixed for the LTS branch?

Thank you!

2022.3.10f1 has already been released and you can download it here.

1 Like

Thank you!
I can confirm that the exception doesn’t come up anymore with the 2022.3.10f1 version on my test devices.

Hi @manugil You can also update 2021.3.30 because there is an error and there are no updates

2021.3 release follows a 1-month cadence. 2021.3.31f1 is expected to be released on October 4th.

If this is blocking your development, please use 2021.3.28f1 in the meantime, as the bug should not be present in that release.

2 Likes

tnk for so fast reply. we will wait