Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4527] I can't run liveview in mobile(Windows)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-11-28T18:15:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsn/a
ReporterPedro Nascimento
AssigneeMostafizur Rahman
Created2016-10-03T19:11:24.000+0000
Updated2016-11-28T18:15:34.000+0000

Description

Hello, I'm trying to run an app with the liveview running, but I can't. When I build and install via Studio I receive this message: [ERROR] : Failed to install apk on "49OVGEZHUKVK8TH6" [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] Application Installer abnormal process termination. Process exit value was 1 I've already followed recommendations like cleaning the project and kill node process and start again. I've already disabled the firewall and opened all the ports. I'm attaching the detailed error in a txt file observation1: When liveview starts, liveview seems actually running fine (if I make a change and save after that, liveview updating routine starts too) UNTIL the error, that I pasted here, appears, then whatever I do liveviews doesn't update. observation2: The app is installed in the mobile, but it doesn't connect to liveview observation3: If I use directly the command with the adb to install the apk in the mobile, the adb closes him self with the "not respoding" windows alert. observation4: Yes, they are in the same network observation5: I've tried in 4 mobiles and in 3 differents machines. Thanks

Attachments

FileDateSize
liveview_error.txt2016-10-03T18:43:51.000+00003079

Comments

  1. Pedro Nascimento 2016-10-05

    Please can someone take a look at it!? I suppose that by this bug being in Windows and most of the effort is made for Mac, it may take a little while for someone dirt hands on it(I know because I worked solving bugs before - I kind know how priority works around teams). I'm comming to this message because I really need to put liveview working on mobile then I can a(pp)celerate the production, great?
  2. Sharif AbuDarda 2016-11-07

    Hello, Are you still having the issue? Try with the latest studio release. Thanks.
  3. Pedro Nascimento 2016-11-07

    Hello, thanks for the reply So, I tried in two devices and the behavior is the same as in the issue description, nothing changed . The news is that I got to use live reload using TIShadow https://github.com/dbankier/TiShadow I build the app using tishadow (ti build ..... --shadow) and install manually in the mobile, when I enter in the app, it's asked for my ip adress, when I enter the Ip, every saved change in the code changes in the mobile too. if you take a look you might get ideas, just saying. But anyway, is there some data in my build log that might be useful for this issue?
  4. Sharif AbuDarda 2016-11-09

    Mello, Make sure your devices are connected properly. To check that run "appc info" in terminal and check the log. If the CLI does not detect the connected device then this is not liveview issue. This is device configuration issue. Let us know. Thanks.
  5. Pedro Nascimento 2016-11-11

    I did make sure, Studio Appcelerator recognize my mobiles. By the way, when I run $appc info -l trace, I get 2016-11-11T17:27:32.610Z | ERROR | titanium exited with exit code 1. re-run with -l trace to get detailed output at ChildProcess. (C:\Users\pedro.nascimento\.appcelerator\install\5.5.1\package\lib\commands\info.js:45:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:829:16) at Socket. (internal/child_process.js:319:11) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at Pipe._onclose (net.js:486:12) 2016-11-11T17:36:17.918Z | TRACE | Sending exit signal to titanium process: 6068 Thanks
  6. Aminul Islam 2016-11-20

    Hi, We recommend you to upgrade your studio 4.8.0 and SDK, CLI 6.0.0.GA. *Note :* 1. Check to make sure your computer and device are on the same wireless network. 2. LiveView requires the following ports to be open: 8323 and 8324 If you get error again please include your studio log. Regards, Aminul
  7. Pedro Nascimento 2016-11-21

    Ok, updated the Ti SDK Studio and appc CLI, my node and ADB is still the same. If I run in Studio the output is the same, {{INFO] : Installing app on device: LG-E455 [TRACE] : Checking if package manager service is started [TRACE] : Package manager has started [TRACE] : Executing: C:\android-sdk-win\platform-tools\adb.exe -s 49OVGEZHUKVK8TH6 install -r -d C:\Users\pedro.nascimento\Documents\Appcelerator_Studio_Workspace\appWithArrow\build\android\bin\appWithArrow.apk [LiveView] version 1.0.10 [LiveView] File Server Started on Port 8324 [LiveView] Alloy project monitor started [LiveView] Event Server Started on Port 8323 [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] : Failed to install apk on "49OVGEZHUKVK8TH6" }} but if I run from the CLI, the output has changed, when I run : appc ti build -p android -T device --liveview the liveview says: ...... {{[INFO] Installing apk: C:\Users\pedro.nascimento\Documents\Appcelerator_Studio_ Workspace\globo2777\build\android\bin\Globo 2777.apk [INFO] Installing app on device: LG-E455 [LiveView] version 1.0.9 [LiveView] File Server Started on Port 8324 [LiveView] Alloy project monitor started [LiveView] Event Server Started on Port 8323 [ERROR] Failed to install apk on "49OVGEZHUKVK8TH6" [ERROR] Error: Error: Unknown option: -d [ERROR] usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [FILTER] [ERROR] pm list permission-groups [ERROR] pm list permissions [-g] [-f] [-d] [-u] [GROUP] [ERROR] pm list instrumentation [-f] [TARGET-PACKAGE] [ERROR] pm list features [ERROR] pm list libraries [ERROR] pm path PACKAGE [ERROR] pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] [ERROR] [--algo --key --iv ] PATH [ERROR] pm uninstall [-k] PACKAGE [ERROR] pm clear PACKAGE [ERROR] pm enable PACKAGE_OR_COMPONENT [ERROR] pm disable PACKAGE_OR_COMPONENT [ERROR] pm disable-user PACKAGE_OR_COMPONENT [ERROR] pm grant PACKAGE PERMISSION [ERROR] pm revoke PACKAGE PERMISSION [ERROR] pm set-install-location [0/auto] [1/internal] [2/external] [ERROR] pm get-install-location [ERROR] pm set-permission-enforced PERMISSION [true|false] [ERROR] [ERROR] pm list packages: prints all packages, optionally only [ERROR] those whose package name contains the text in FILTER. Options: [ERROR] -f: see their associated file. [ERROR] -d: filter to only show disbled packages. [ERROR] -e: filter to only show enabled packages. [ERROR] -s: filter to only show system packages. [ERROR] -3: filter to only show third party packages. [ERROR] -i: see the installer for the packages. [ERROR] -u: also include uninstalled packages. [ERROR] [ERROR] pm list permission-groups: prints all known permission groups. [ERROR] [ERROR] pm list permissions: prints all known permissions, optionally only [ERROR] those in GROUP. Options: [ERROR] -g: organize by group. [ERROR] -f: print all information. [ERROR] -s: short summary. [ERROR] -d: only list dangerous permissions. [ERROR] -u: list only the permissions users will see. [ERROR] [ERROR] pm list instrumentation: use to list all test packages; optionally [ERROR] supply to list the test packages for a particular [ERROR] application. Options: [ERROR] -f: list the .apk file for the test package. [ERROR] [ERROR] pm list features: prints all features of the system. [ERROR] [ERROR] pm path: print the path to the .apk of the given PACKAGE. [ERROR] [ERROR] pm install: installs a package to the system. Options: [ERROR] -l: install the package with FORWARD_LOCK. [ERROR] -r: reinstall an exisiting app, keeping its data. [ERROR] -t: allow test .apks to be installed. [ERROR] -i: specify the installer package name. [ERROR] -s: install package on sdcard. [ERROR] -f: install package on internal flash. [ERROR] [ERROR] pm uninstall: removes a package from the system. Options: [ERROR] -k: keep the data and cache directories around after package removal . [ERROR] [ERROR] pm clear: deletes all data associated with a package. [ERROR] [ERROR] pm enable, disable, disable-user: these commands change the enabled stat e [ERROR] of a given package or component (written as "package/class"). [ERROR] [ERROR] pm grant, revoke: these commands either grant or revoke permissions [ERROR] to applications. Only optional permissions the application has [ERROR] declared can be granted or revoked. [ERROR] [ERROR] pm get-install-location: returns the current install location. [ERROR] 0 [auto]: Let system decide the best location [ERROR] 1 [internal]: Install on internal device storage [ERROR] 2 [external]: Install on external media [ERROR] [ERROR] pm set-install-location: changes the default install location. [ERROR] NOTE: this is only intended for debugging; using this can cause [ERROR] applications to break and other undersireable behavior. [ERROR] 0 [auto]: Let system decide the best location [ERROR] 1 [internal]: Install on internal device storage [ERROR] 2 [external]: Install on external media [ERROR] rm failed for -f, No such file or directory [ERROR] }}
  8. Sharif AbuDarda 2016-11-23

    Hello, Liveview works fine with Windows phone. This seems to be device issue for LG-E455 device. There might be some permissions missing. Can you try with any other device? Let us know. Thanks.

JSON Source