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.
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.
Hi, does it relate to the error?
Exception: No such proxy method: UnityEngine.Purchasing.GooglePurchaseUpdatedListener.onPurchasesUpdated(UnityEngine.AndroidJavaObject,null)
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.