Trying to run simple monkeyrunner python script, 'importerror no module named os'

后端 未结 4 2023
轮回少年
轮回少年 2021-01-15 13:16

I have the android emulator/SDK installed on my computer, and I\'m trying to run a simple python script, but it fails on the \'import os\' line (which should be standard!)

4条回答
  •  时光取名叫无心
    2021-01-15 13:53

    The solution of this problem (and the problem itself explained) can be found at http://dtmilano.blogspot.ca/2013/05/monkeyrunner-importerror-no-module.html.

    Basically, you have to replace jython-2.5.3.jar by jython-standalone-2.5.3.jar, at least until Android SDK Tools Rev. 22.0.1 is out.

提交回复
热议问题