1

I've wrote a script test.sh for android automation testing, here require start emulator each time

PATH="$PATH:/home/xxx/tool/jdk1.6.0_34/bin:/home/xxx/tool/android-sdk-linux/tools:"
emulator -avd avd22

I put test.sh in crontab, but looks emulator can't come up in crontab, but manually I execute test.sh, all things work fine.

4

1 回答 1

0

通过在模拟器命令之前添加以下命令来修复它

export DISPLAY=:0 && emulator -avd avd22
于 2012-12-05T08:50:26.337 回答