【发布时间】:2012-07-08 13:37:17
【问题描述】:
当我使用选项 create emulator 在 Jenkins 上运行测试时,我遇到了这个问题:
[android] 无法创建 Android 模拟器:无法运行 AVD 创建命令
当我以现有模拟器为目标时,我遇到了这个问题:
致命: C:\Windows\system32\config\systemprofile.android\avd\AVD_2.2.ini( 系统找不到指定的路径)java.io.FileNotFoundException: C:\Windows\system32\config\systemprofile.android\avd\AVD_2.2.ini( 系统找不到指定的路径)在 java.io.FileInputStream.open(Native Method) 在 java.io.FileInputStream.(Unknown Source) at java.io.FileReader.(未知来源)在 hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:436) 在 hudson.plugins.android_emulator.SdkInstaller$2.call(SdkInstaller.java:331) 在 hudson.plugins.android_emulator.SdkInstaller$2.call(SdkInstaller.java:328) 在 hudson.remoting.LocalChannel.call(LocalChannel.java:45) 在 hudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator(SdkInstaller.java:328) 在 hudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator(SdkInstaller.java:312) 在 hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:174) 在 hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:247) 在 hudson.model.Build$BuildExecution.doRun(Build.java:154) 在 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 在 hudson.model.Run.execute(Run.java:1488) 在 hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 在 hudson.model.ResourceController.execute(ResourceController.java:88) 在 hudson.model.Executor.run(Executor.java:236)
我有这个文件。 当我在 jenkins 上运行手动模拟器和测试时,它可以工作。
【问题讨论】:
标签: java android testing android-emulator jenkins