Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 4.2 Android - error CS1502

Discussion in 'Android' started by ina, Jul 30, 2013.

  1. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,080
    IntPtr obj_JavaClass = AndroidJNI.NewObject(c, m, args);

    // create an internal instance of the java class
    AndroidJavaObject ajo = new AndroidJavaObject(obj_JavaClass);

    Unity 4.2 Android - error CS1502: The best overloaded method match for `UnityEngine.AndroidJavaObject.AndroidJavaObject(string, params object[])' has some invalid arguments

    There appears no direct way to remap intptr to string,object[]. This plugin worked in previous versions of Unity
     
  2. winkan

    winkan

    Joined:
    May 8, 2013
    Posts:
    51
    I'm getting this erros too.

    I bought the GyroDroid plug-in but I can't use it. So weird. Can anybody help ?

    Thanks.