Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15857] CLI: Android build fails when doing a device build, then doing an emulator build on Windows

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-12-05T07:26:02.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0
ComponentsAndroid, Tooling
Labelsmodule_build, qe-closed-3.2.0, qe-testadded
ReporterChris Barber
AssigneeChris Barber
Created2013-12-02T20:05:51.000+0000
Updated2014-07-26T04:40:07.000+0000

Description

If you do an Android device build, then do an emulator build without cleaning, the following error occurs:
[DEBUG] Removing old file: C:\Users\Thomas Anderson\testapp2\build\android\assets\alloy\backbone.js

C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:184
        throw e;
              ^
Error: ENOENT, no such file or directory 'C:\Users\Thomas Anderson\testapp2\build\android\assets\alloy\backbone.js'
    at fs.unlinkSync (fs.js:760:18)
    at AndroidBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\android\cli\commands\_build.js:2810:7)
    at Array.forEach (native)
    at AndroidBuilder.removeOldFiles (C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\android\cli\commands\_build.js:2807:35)
    at C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\node_modules\async\lib\async.js:548:21
    at C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\node_modules\async\lib\async.js:224:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\node_modules\async\lib\async.js:131:13)
    at C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\node_modules\async\lib\async.js:142:25
    at C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\node_modules\async\lib\async.js:226:17
    at AndroidBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\3.2.0.v20131127114913\node_modules\async\lib\async.js:553:34)
This happens on Windows 8 while building an Alloy app, though I'm not sure if it's Windows or Alloy specific.

Attachments

FileDateSize
log.txt2013-12-02T20:05:51.000+000025619

Comments

  1. Chris Barber 2013-12-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5061 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5062
  2. Samuel Dowse 2013-12-11

    Verified fixed on: Windows 7, Windows 8 CLI: 3.2.0-cr Titanium SDK, build: 3.2.0.v20131210191510 Android Device: Nexus 5 (4.4) Android Emulator: 2.3.3 (API 10) Application builds and runs on device. Application builds and runs on emulator without cleaning the project between builds. Closing.

JSON Source