GAutomator
GAutomator copied to clipboard
UnityEngine.AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='GetX'
我在Unity Android运行GAutomator不断发生报错:
<WeTestLog> [
UnityEngine.AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='GetX' signature='()F' in class Lcom.tencent.wetest.U3DAutomation;
at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJNISafe.CallStaticObjectMethod (System.IntPtr clazz, System.IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidReflection.GetMethodMember (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine._AndroidJNIHelper.GetMethodID (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJNIHelper.GetMethodID (System.IntPtr javaClass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine._AndroidJNIHelper.GetMethodID[ReturnType] (System.IntPtr jclass, System.String methodName, System.Object[] args, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJNIHelper.GetMethodID[ReturnType] (System.IntPtr jclass, System.String methodName, System.Object[] args, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJavaObject._CallStatic[ReturnType] (System.String methodName, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
at WeTest.U3DAutomation.AndroidRobot.getAndroidMScreen () [0x00000] in <00000000000000000000000000000000>:0
at WeTest.U3DAutomation.CoordinateTool.GetCurrenScreenParam (System.Single& offsetx, System.Single& offsety, System.Single& scalex, System.Single& scaley) [0x00000] in <00000000000000000000000000000000>:0
at WeTest.U3DAutomation.UGUIHelper.GetBound (UnityEngine.GameObject obj) [0x00000] in <00000000000000000000000000000000>:0
at WeTest.U3DAutomation.CommandHandler.handleGetElementsBound (WeTest.U3DAutomation.Command command) [0x00000] in <00000000000000000000000000000000>:0
at WeTest.U3DAutomation.CommandHandler+CmdHandler.Invoke (WeTest.U3DAutomation.Command cmd) [0x00000] in <00000000000000000000000000000000>:0
at WeTest.U3DAutomation.CommandHandler+<HandleCommand>d__20.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
]
UnityEngine.Logger:Log(LogType, Object)
WeTest.U3DAutomation.AndroidRobot:getAndroidMScreen()
WeTest.U3DAutomation.CoordinateTool:GetCurrenScreenParam(Single&, Single&, Single&, Single&)
WeTest.U3DAutomation.UGUIHelper:GetBound(GameObject)
WeTest.U3DAutomation.CommandHandler:handleGetElementsBound(Command)
WeTest.U3DAutomation.CmdHandler:Invoke(Command)
WeTest.U3DAutomation.<HandleCommand>d__20:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)