Closed dustinkerstein closed 5 years ago
Seems to be related to the Mono stripping level. If I set it to disabled or use IL2CPP this error goes away and Branch works fine.
Hi @dustinkerstein :
Unity 2017.1.0f3 and Mono + Strip Byte Code (and Strip Assemblies) produce this error.
thanks, let me check
Hi @dustinkerstein , sorry for delay. I checked Stripping Levels, and yes, we have that troubles with two stripping levels. As I understand, Unity3d cut some features for android native things. But I was able to use some stripping features. I hope, my info will be able to help you.
I use Unity 2017.1.0p4.
I am able to use Mono + Use micro mscorelib, also IL2CPP + Strip Engine Code.
For "Mono + Use micro mscorelib" I use link.xml
<linker>
<assembly fullname="UnityEngine">
<type fullname="UnityEngine.AndroidJavaRunnableProxy" preserve="all"/>
</assembly>
</linker>
Nice. Using that link.xml + Mono + Strip Byte Code works great. It appears micro mscorelib isn't available in 2017 though. Thanks!
Not sure if you want to fix this as a bug, or however, but I'll leave that to you.
It appears micro mscorelib isn't available in 2017 though
micro mscorelib added in 2017.1.0p3
Not sure if you want to fix this as a bug, or however, but I'll leave that to you.
I am working with that issue.
@antonargunov I'm getting the same exception, but in Unity 5.6.5f1. Stripping level is already disabled!
Exception: No such proxy method: UnityEngine.AndroidJavaRunnableProxy.toString()
UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.Object[] args)
UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, UnityEngine.AndroidJavaObject[] javaArgs)
UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod (UnityEngine.AndroidJavaProxy proxy, IntPtr jmethodName, IntPtr jargs)
@antonargunov Any update in this?
@Nyankoo are you still experiencing this issue?
@Nyankoo
Exception: No such proxy method: UnityEngine.AndroidJavaRunnableProxy.toString()
I'm getting the same problem in 5.6.1p3, Have you solve the problem yet?
@Nyankoo sorry for delay, try to move Branch android libs from folder Plugins/Branch/Android/libs in folder Plugins/Android.
@Nyankoo and @fankidark did moving the android libs help solve this issue for you?
Due to the age and inactivity of this issue, I am closing this now. If you are encountering this problem still, please reach out to our support team (support.branch.io) or open a new github issue and we would be happy to help you out!
As soon as I associate the Branch prefab (current commit) I start seeing this error when launching Unity. Note that this happens regardless of whether I call Branch.initSession or not.