AndroidJavaObject.Call array passing error (Unity for Android)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on Unity for Android application, which uses native Android plugin. Inside of it I use AndroidJavaObject 's Call method. As it says in documentation , signature of method is: public void Call(string methodName, params object[] args); I want to send array of strings into my project: string[] strings = new string[] { "string1", "string2", ...}; myAndroidJavaObject.Call("myMethod", strings); And receive it into Java code: public void myMethod(String[] strings){ // some code where I use strings } But I receive error: