When I run a test on Jenkins using the create emulator option, I have this problem:
[android] Failed to create Android emulator: failed to launch AVD create command
When I aim at an existing emulator, I have this problem:
FATAL: C: \ Windows \ system32 \ config \ systemprofile.android \ avd \ AVD_2.2.ini (the system cannot find the path specified) java.io.FileNotFoundException: C: \ Windows \ system32 \ config \ systemprofile.android \ avd \ AVD_2.2.ini (the system cannot find the path specified) java.io.FileInputStream.open (native method) in java.io.FileInputStream. (Unknown source) in java.io.FileReader. (Unknown source) in hudson.plugins.android_emulator.util.Utils.parseConfigFile (Utils.java:436) in hudson.plugins.android_emulator.SdkInstaller $ 2.call (SdkInstaller.javahaps31) in hudson.plugins.android_emulator.S .call (SdkInstaller.java:328) at hudson.remoting.LocalChannel.call (LocalChannel.java:45) at hudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator (SdkInstaller.java:328) in hudson.ulator. getPlatformForEmulator (SdkInstaller.javahaps12) in hudson.plugins.android_emulator.SdkInstaller.installDependencies (SdkInstaller.java:174) in hudson.plugins.android_emulator.AndroidEmulator.setUp (AndroidEmulator.javaild.m .doRun (Build.java:154) in hudson.model.AbstractBuild $ AbstractBuildExecution.run (AbstractBuild.java:499) in hudson.model.Run.execute (Run.java:1488) in hudson.model.FreeStyleBuild.run ( FreeStyleBuild.java:46) in hudson.model.ResourceController.execute (Res ourceController.java:88) in hudson.model.Executor.run (Executor.java:236)
I have this file. When I run the manual emulator and tests on jenkins, it works.
source share