请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

An unknown server-side error occurred while processing the command

app: F:\下载内容\com.xchfsghd.xbhdjh_8451256.apk

[BaseDriver] Creating session with MJSONWP desired capabilities: {"platformName":"android","...

[BaseDriver] Session created with session id: 51a5f1bb-3be2-42ee-8214-ef547ad1e110

[AndroidDriver] Getting Java version

[AndroidDriver] Shutting down Android driver

[AndroidDriver] Called deleteSession but bootstrap wasn't active

[BaseDriver] Event 'newSessionStarted' logged at 1529419139474 (22:38:59 GMT+0800 (中国标准时间))

[MJSONWP] Encountered internal error running command: Error: Command 'java -version' exited with code 2

[MJSONWP]     at ChildProcess.(C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\teen_process\lib\exec.js:94:19)

[MJSONWP]     at emitTwo (events.js:126:13)

[MJSONWP]     at ChildProcess.emit (events.js:214:7)

[MJSONWP]     at maybeClose (internal/child_process.js:925:16)


出现了画横线的问题

raceback (most recent call last):

  File "D:/project/appium_text.py", line 11, in <module>

    driver = webdriver.Remote('http://localhost:4723/wd/hub',ca)

刚刚运行到driver就出错了,代码与例子一致


正在回答 回答被采纳积分+3

2回答

提问者 慕勒7219338 2018-06-20 10:26:38

感谢您的回答,我已经找到问题了,重新安装一下Java jdk就好了。

0 回复 有任何疑惑可以回复我~
Mushishi 2018-06-20 10:22:35

你好,你去检查一下你环境变量,这个问题不明确基本都环境造成。还有 你得app路径不要用中文名字,这样也会出问题。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信