java.io.FileNotFoundException: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory)

Jenkins JIRA | Ling-Yi Kung | 3 years ago
  1. 0

    The plugin looks in the workspace directory when searching for the specified AVD. The AVD (named "Image") is present in ~/.android/avd, but it looks in ~/workspace/<test-name>/.android/avd instead. 15:59:12 FATAL: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory) 15:59:12 java.io.FileNotFoundException: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory) 15:59:12 at java.io.FileInputStream.open(Native Method) 15:59:12 at java.io.FileInputStream.<init>(FileInputStream.java:138) 15:59:12 at java.io.FileReader.<init>(FileReader.java:72) 15:59:12 at hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:478) 15:59:12 at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:365) 15:59:12 at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:362) 15:59:12 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 15:59:12 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 15:59:12 at hudson.remoting.Request$2.run(Request.java:326) 15:59:12 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 15:59:12 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 15:59:12 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 15:59:12 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 15:59:12 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 15:59:12 at java.lang.Thread.run(Thread.java:724) When a symbolic link is created in the workspace dir to ~/.android/avd or the .ini and .avd files are copied to the workspace, the AVD is invalid (error: missing kernel file). 16:16:42 $ /Users/lkung/tools/android-sdk/tools/android list target 16:16:43 [android] Using Android SDK: /Users/lkung/tools/android-sdk 16:16:43 $ /Users/lkung/tools/android-sdk/platform-tools/adb start-server 16:16:43 [android] Starting Android emulator 16:16:43 [android] Erasing existing emulator data... 16:16:43 $ /Users/lkung/tools/android-sdk/tools/emulator -no-boot-anim -ports 59381,59382 -avd Image -no-snapshot-load -no-snapshot-save -wipe-data -http-proxy 10.15.11.60 16:16:43 emulator: ERROR: This AVD's configuration is missing a kernel file!! 16:16:46 * daemon not running. starting it now on port 59383 * 16:16:46 * daemon started successfully * 16:17:48 [android] Emulator did not appear to start; giving up 16:17:48 $ /Users/lkung/tools/android-sdk/platform-tools/adb disconnect localhost:59382 16:17:48 [android] Stopping Android emulator 16:17:48 $ /Users/lkung/tools/android-sdk/platform-tools/adb kill-server I tried setting $ANDROID_SDK_HOME to $HOME and $ANDROID_SDK_ROOT to $ANDROID_HOME using the EnvInject plugin, but neither of those worked. Edit: The emulator image runs fine when launched locally ("emulator @Image").

    Jenkins JIRA | 3 years ago | Ling-Yi Kung
    java.io.FileNotFoundException: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory)
  2. 0

    The plugin looks in the workspace directory when searching for the specified AVD. The AVD (named "Image") is present in ~/.android/avd, but it looks in ~/workspace/<test-name>/.android/avd instead. 15:59:12 FATAL: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory) 15:59:12 java.io.FileNotFoundException: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory) 15:59:12 at java.io.FileInputStream.open(Native Method) 15:59:12 at java.io.FileInputStream.<init>(FileInputStream.java:138) 15:59:12 at java.io.FileReader.<init>(FileReader.java:72) 15:59:12 at hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:478) 15:59:12 at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:365) 15:59:12 at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:362) 15:59:12 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 15:59:12 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 15:59:12 at hudson.remoting.Request$2.run(Request.java:326) 15:59:12 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 15:59:12 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 15:59:12 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 15:59:12 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 15:59:12 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 15:59:12 at java.lang.Thread.run(Thread.java:724) When a symbolic link is created in the workspace dir to ~/.android/avd or the .ini and .avd files are copied to the workspace, the AVD is invalid (error: missing kernel file). 16:16:42 $ /Users/lkung/tools/android-sdk/tools/android list target 16:16:43 [android] Using Android SDK: /Users/lkung/tools/android-sdk 16:16:43 $ /Users/lkung/tools/android-sdk/platform-tools/adb start-server 16:16:43 [android] Starting Android emulator 16:16:43 [android] Erasing existing emulator data... 16:16:43 $ /Users/lkung/tools/android-sdk/tools/emulator -no-boot-anim -ports 59381,59382 -avd Image -no-snapshot-load -no-snapshot-save -wipe-data -http-proxy 10.15.11.60 16:16:43 emulator: ERROR: This AVD's configuration is missing a kernel file!! 16:16:46 * daemon not running. starting it now on port 59383 * 16:16:46 * daemon started successfully * 16:17:48 [android] Emulator did not appear to start; giving up 16:17:48 $ /Users/lkung/tools/android-sdk/platform-tools/adb disconnect localhost:59382 16:17:48 [android] Stopping Android emulator 16:17:48 $ /Users/lkung/tools/android-sdk/platform-tools/adb kill-server I tried setting $ANDROID_SDK_HOME to $HOME and $ANDROID_SDK_ROOT to $ANDROID_HOME using the EnvInject plugin, but neither of those worked. Edit: The emulator image runs fine when launched locally ("emulator @Image").

    Jenkins JIRA | 3 years ago | Ling-Yi Kung
    java.io.FileNotFoundException: /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory)
  3. 0

    Problems Solved for Setting Up Jenkins | No3x

    no3x.de | 1 year ago
    java.io.FileNotFoundException: C:\Windows\system32\config\systemprofile\.android\avd\Android2.3.3API10.ini (Das System kann den angegebenen Pfad nicht finden)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I´m trying to make jenkins use all my enviromnent (including .android/avd and sdk). So I tryed adding variables to my node: !Screen Shot 2015-07-07 at 10.59.42 AM.png|thumbnail! Use https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin and this variables under `Prepare an environment for the run` for my task: ``` ANDROID_AVD_HOME=/Users/danielgomez22/.android/avd/ ANDROID_HOME=/Users/danielgomez22/Library/Android/sdk ANDROID_SDK_HOME=/Users/danielgomez22/ JENKINS_ANDROID_HOME=/Users/danielgomez22/Library/Android/sdk PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH ``` But jenkins always try to get avd emulators from /Users/Shared/Jenkins/.android/avd/. And then when I try to run a created emulator it returns: ``` FATAL: /Users/Shared/Jenkins/.android/avd/Nexus_5_API_22_Google_Apis.ini (No such file or directory) java.io.FileNotFoundException: /Users/Shared/Jenkins/.android/avd/Nexus_5_API_22_Google_Apis.ini (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileReader.<init>(FileReader.java:72) at hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:449) at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:414) at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:411) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator(SdkInstaller.java:411) at hudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator(SdkInstaller.java:395) at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:236) at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:256) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Finished: FAILURE ``` And when I try to create a new one: ``` $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android list target [android] Using Android SDK: /Users/Shared/Jenkins/Home/tools/android-sdk [android] Waiting 20 seconds before starting emulator... $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb start-server * daemon not running. starting it now on port 6659 * * daemon started successfully * $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb start-server [android] Starting Android emulator [android] Erasing existing emulator data... $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/emulator -ports 6657,6658 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_22_google_apis-x86 -no-snapshot-load -no-snapshot-save -wipe-data -no-window -no-audio -gpu off -no-boot-anim PANIC: ANDROID_AVD_HOME is defined but could not find hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_22_google_apis-x86.ini file in $ANDROID_AVD_HOME (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd) [android] Emulator did not appear to start; giving up $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb disconnect localhost:6658 [android] Stopping Android emulator $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb kill-server Finished: NOT_BUILT ```

    Jenkins JIRA | 1 year ago | Daniel Gomez
    java.io.FileNotFoundException: /Users/Shared/Jenkins/.android/avd/Nexus_5_API_22_Google_Apis.ini (No such file or directory)
  6. 0

    I´m trying to make jenkins use all my enviromnent (including .android/avd and sdk). So I tryed adding variables to my node: !Screen Shot 2015-07-07 at 10.59.42 AM.png|thumbnail! Use https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin and this variables under `Prepare an environment for the run` for my task: ``` ANDROID_AVD_HOME=/Users/danielgomez22/.android/avd/ ANDROID_HOME=/Users/danielgomez22/Library/Android/sdk ANDROID_SDK_HOME=/Users/danielgomez22/ JENKINS_ANDROID_HOME=/Users/danielgomez22/Library/Android/sdk PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH ``` But jenkins always try to get avd emulators from /Users/Shared/Jenkins/.android/avd/. And then when I try to run a created emulator it returns: ``` FATAL: /Users/Shared/Jenkins/.android/avd/Nexus_5_API_22_Google_Apis.ini (No such file or directory) java.io.FileNotFoundException: /Users/Shared/Jenkins/.android/avd/Nexus_5_API_22_Google_Apis.ini (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileReader.<init>(FileReader.java:72) at hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:449) at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:414) at hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:411) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator(SdkInstaller.java:411) at hudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator(SdkInstaller.java:395) at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:236) at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:256) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Finished: FAILURE ``` And when I try to create a new one: ``` $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android list target [android] Using Android SDK: /Users/Shared/Jenkins/Home/tools/android-sdk [android] Waiting 20 seconds before starting emulator... $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb start-server * daemon not running. starting it now on port 6659 * * daemon started successfully * $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb start-server [android] Starting Android emulator [android] Erasing existing emulator data... $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/emulator -ports 6657,6658 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_22_google_apis-x86 -no-snapshot-load -no-snapshot-save -wipe-data -no-window -no-audio -gpu off -no-boot-anim PANIC: ANDROID_AVD_HOME is defined but could not find hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_22_google_apis-x86.ini file in $ANDROID_AVD_HOME (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd) [android] Emulator did not appear to start; giving up $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb disconnect localhost:6658 [android] Stopping Android emulator $ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb kill-server Finished: NOT_BUILT ```

    Jenkins JIRA | 1 year ago | Daniel Gomez
    java.io.FileNotFoundException: /Users/Shared/Jenkins/.android/avd/Nexus_5_API_22_Google_Apis.ini (No such file or directory)

  1. jshakil 1 times, last 1 month ago
  2. serious2monkeys 4 times, last 2 months ago
  3. davidvanlaatum 1 times, last 3 months ago
  4. Christopher 3 times, last 3 months ago
  5. r1chjames 1 times, last 5 months ago
5 more registered users
19 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    /Users/lkung/workspace/appium-android-test/.android/avd/Image.ini (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileReader.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:138)
    3. java.io.FileReader.<init>(FileReader.java:72)
    3 frames
  3. hudson.plugins.android_emulator
    SdkInstaller$3.call
    1. hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:478)
    2. hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:365)
    3. hudson.plugins.android_emulator.SdkInstaller$3.call(SdkInstaller.java:362)
    3 frames
  4. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:326)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    5. java.lang.Thread.run(Thread.java:724)
    5 frames