Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18600

LiveView: Building to an Android emulator fails with [LiveView] File Server unavailable. Host Unreachable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 3.5.1
    • Fix Version/s: None
    • Component/s: Android, LiveView
    • Environment:

      Mac OSX 10.10.2
      Appcelerator Studio, build: 3.4.2.201502181619
      Titanium SDK build: 3.5.1.v20150219140555
      Titanium CLI, build: 3.4.2-alpha
      Alloy: 1.5.1
      Android Emulator 5.0.1
      LiveView 1.0.7

    • Story Points:
      8
    • Sprint:
      2015 Sprint 04 Tooling

      Description

      Description

      When attempting to build to an Android emulator the build fails with.

       [ERROR] :  TiExceptionHandler: (main) [9499,9499] ----- Titanium Javascript Runtime Error -----
          [ERROR] :  TiExceptionHandler: (main) [1,9500] - In app.js:567,13
          [ERROR] :  TiExceptionHandler: (main) [1,9501] - Message: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 172.16.0.216:8324
          [ERROR] :  TiExceptionHandler: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.
      

      I do not believe this is a regression as it has been reported in previous versions of LiveView

      To workaround just disable LiveView and the build will be fine

      Building to device with LiveView works fine and I am able to make changes with no errors
      Checking the log output shows that the LiveView server has started

      [LiveView] version 1.0.7
      [LiveView] File Server Started on Port 8324
      [LiveView] Alloy project monitor started
      [LiveView] Event Server Started on Port 8323
      

      This issue is not reliant on a node version, it occurs in node 0.12 as well as 0.10.32

      Steps To Reproduce

      1. Build to an Android emulator from Studio with LiveView enabled

      Actual Result

      The build fails with the error above

      Expected Result

      The build should not fail and LiveView should be working as expected

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                eharris Ewan Harris
              • Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Source Code