Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16172] Studio 3.2.0 + SDK 3.0.2 does not work for Android build

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-09-02T06:39:16.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sRelease 3.2.0
ComponentsAndroid, Tooling
Labelsandroid, build, cli, emulator
ReporterAvtarSingh Suchariya
AssigneeEric Merriman
Created2014-01-08T13:22:45.000+0000
Updated2017-03-21T20:45:00.000+0000

Description

I am facing following error when I am trying to run the code in android emulator. [ERROR] : Failed to run command "build" [ERROR] : TypeError: Object # has no method 'sendAnalytics' at Object. (/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/cli/commands/_build.js:395:8) at /usr/local/lib/node_modules/titanium/lib/hook.js:214:18 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:139:25 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:553:34 at /usr/local/lib/node_modules/titanium/lib/hook.js:207:9 at fire (/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/cli/hooks/plugins.js:15:3) at /Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/cli/hooks/plugins.js:19:3 at /usr/local/lib/node_modules/titanium/lib/hook.js:205:13 --------------------------------------------- at exports.execFile (child_process.js:691:9) at exports.exec (child_process.js:578:18) at async.series.cached (/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/node-appc/lib/android.js:81:4) at /Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:486:21 at /Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:185:13 at iterate (/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:108:13) at /Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:119:25 at /Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:187:17 [ERROR] Application Installer abnormal process termination. Process exit value was 1

Comments

  1. Ritu Agrawal 2014-01-08

    I am curious if there is a reason you are using Titanium SDK 3.0.2 with Studio 3.2.0. We recently released SDK 3.2.0 that includes many new features, enhancements, performance improvements and bug fixes and we would strongly recommend you to upgrade to the latest release. Please make sure that you have upgraded all components (Studio, SDK and CLI) to the 3.2.0 GA version.
  2. AvtarSingh Suchariya 2014-01-08

    Well, We are at end of product release and we tested and make it performance level in version 3.0.2 GA. It is not hard to upgrade to the latest version but it is hard to make upgrade at this stage. Is there any solution to this or alternate way to work with this ?
  3. AvtarSingh Suchariya 2014-01-08

    Another surprise is, it is perfectly working with iOS but getting problem in Android only.
  4. Ritu Agrawal 2014-01-12

    Moving this ticket to engineering as I can reproduce this issue by building any sample project for Android emulator with Studio 3.2.0 and Titanium SDK 3.0.2. [ERROR] : Failed to run command "build" [ERROR] : TypeError: Object # has no method 'sendAnalytics' at Object. (/Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/cli/commands/_build.js:395:8) at /usr/local/lib/node_modules/titanium/lib/hook.js:214:18 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:139:25 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:553:34 at /usr/local/lib/node_modules/titanium/lib/hook.js:207:9 at cli.addHook.post (/Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1377637371/node_modules/liveview/hook/lvhook.js:116:5) at /usr/local/lib/node_modules/titanium/lib/hook.js:205:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:548:21 --------------------------------------------- at exports.execFile (child_process.js:691:9) at exports.exec (child_process.js:578:18) at async.series.cached (/Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/node-appc/lib/android.js:81:4) at /Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:486:21 at /Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:185:13 at iterate (/Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:108:13) at /Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:119:25 at /Users/ragrawal/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/async/lib/async.js:187:17 [ERROR] Application Installer abnormal process termination. Process exit value was 1
  5. Chris Barber 2016-09-02

    The Android build was completely rewritten for Titanium SDK 3.2.0. This is no longer an issue.
  6. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source