Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityEngine.AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='GetX' #95

Open
h3902340 opened this issue Nov 17, 2020 · 0 comments

Comments

@h3902340
Copy link

我在Unity Android运行GAutomator不断发生报错:
[
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+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.d__20:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant