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

后端 未结 4 1985
轮回少年
轮回少年 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:57

    The issue is that the latest versions of the Android SDK include jython-2.5.3 which do not have the os and other importable libraries built in. I found an old copy of the SDK and used the old JAR which appears to have that embedded in it those libraries.

提交回复
热议问题