执行monkeyrunner脚本时,出现如下错误,请问大家该如何解决?
D:\android sdk\sdk\tools>monkeyrunner 7sanity.py140723 11:37:24.086:S Scri
pt terminated due to an exception
140723 11:37:24.086:S Synta
xError: ("no viable alternative at character '\uff08'", ('D:\\android sdk\\sdk\\
tools\\7sanity.py', 67, 11, 'device.type\xef\xbc\x88"1"\xef\xbc\x89\n'))
140723 11:37:24.086:S
at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92)
140723 11:37:24.086:S
at org.python.core.ParserFacade.parse(ParserFacade.java:184)
140723 11:37:24.086:S
at org.python.core.Py.compile_flags(Py.java:1731)
140723 11:37:24.086:S
at org.python.core.__builtin__.execfile_flags(__builtin__.java:514)
140723 11:37:24.086:S
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
140723 11:37:24.086:S
at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116)
140723 11:37:24.086:S
at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77) 升级了一下python,从2.7到3.3,还是一样的问题。 哈哈,问题解决,脚本里的括号用成了中文的:funk:
页:
[1]