[AC-1338] Cannot run my app on Android Emulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2015-08-12T06:58:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Studio, Titanium SDK & CLI |
Labels | android |
Reporter | Charles Rethman |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-06-01T13:27:37.000+0000 |
Updated | 2016-03-08T07:37:44.000+0000 |
Description
Since downloading the last update (CLI tools) I cannot get my Alloy project to compile to Android. This might be a problem with my code but the app does work fine on iOS. Here is the output from the console:
Appcelerator Command-Line Interface, version 4.0.1
Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved.
TRACE | __command__ search paths:
[
"/Users/Charles/.appcelerator/install/4.0.1/package",
"/Users/Charles/.appcelerator/install/4.0.1/package/node_modules",
"/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules",
"/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules",
"/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules",
"/Applications/Appcelerator Studio/node_modules",
"/Applications/node_modules",
"/node_modules",
"/Users/Charles/.appcelerator/.npm/lib/node_modules"
]
DEBUG | [PLUGIN-LOAD] 0ms /Users/Charles/.appcelerator/install/4.0.1/package/appc.js
DEBUG | [PLUGIN-LOAD] 392ms /Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/appc.js
DEBUG | [PLUGIN-LOAD] 0ms /Users/Charles/.appcelerator/install/4.0.1/package/node_modules/arrow/appc.js
log level set to "trace"
executing command "run"
set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com"}
checking credentials for existing session
Attempting to load session info from config file
check if session is invalidated
session expiry 1433236541771 false
ACS config file: /Users/Charles/.acs
found ACS login { mid: 'b8:e8:56:30:5e:0c',
username: 'rethman@me.com',
cookie: [ 'connect.sid=s%3ABWgxSzbGftFHvtFdAK6bjGL7.WQFuvSfimzmvQUQIwt3gninS7jNkdWdcx%2BMkokt1prs; Path=/; Expires=Tue, 02 Jun 2015 09:15:47 GMT; HttpOnly' ],
publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443,
defaultEP:
{ publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
ACS cookie expiry [ 1433236547000 ]
session already loaded in opts.session
getCredentials() session:
{
"ipaddress": "192.168.0.7",
"username": "rethman@me.com",
"password": "",
"session": "",
"nonce": "",
"environment": {
"name": "production",
"isProduction": true,
"acsBaseUrl": "https://api.cloud.appcelerator.com",
"acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
"nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com"
},
"token": "",
"fingerprint": "848ec76d3d0c36ca354faf4720c79660b3712133",
"fingerprint_description": "Mac OSX Serial Number: C02LJ1ZNFH01",
"org_id": 100028893,
"expiry": 1433236541771
}
loading plugins for command "run"
run search paths:
[
"/Users/Charles/.appcelerator/install/4.0.1/package",
"/Users/Charles/.appcelerator/install/4.0.1/package/node_modules",
"/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules",
"/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules",
"/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules",
"/Applications/Appcelerator Studio/node_modules",
"/Applications/node_modules",
"/node_modules",
"/Users/Charles/.appcelerator/.npm/lib/node_modules"
]
[PLUGIN-LOAD] 0ms /Users/Charles/.appcelerator/install/4.0.1/package/appc.js
[PLUGIN-LOAD] 174ms /Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/appc.js
run plugin: /Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium
[PLUGIN-LOAD] 1ms /Users/Charles/.appcelerator/install/4.0.1/package/node_modules/arrow/appc.js
run plugin: /Users/Charles/.appcelerator/install/4.0.1/package/node_modules/arrow
plugin "arrow" failed its "when" function check, skipping...
loading plugin "titanium" for command "run" CLI options via function
loading plugin "titanium" for command "run" CLI options via array
Duplicate option "colors" for command "run", removing...
executing command "run" with the following plugins:
["titanium"]
TRACE | Attempting to load session info from config file
TRACE | check if session is invalidated
TRACE | session expiry 1433236541771 false
TRACE | session already loaded in opts.session
DEBUG | Titanium Downloads Last Checked: 1433096019906
TRACE | "/usr/local/bin/node" "/Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" config -o json-object
TRACE | "/usr/local/bin/node" "/Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" sdk -o json
TRACE | checking for titanium, result:
{ activeSDK: '3.5.1.GA',
defaultInstallLocation: '/Users/Charles/Library/Application Support/Titanium',
installLocations:
[ '/Users/Charles/Library/Application Support/Titanium',
'/Library/Application Support/Titanium' ],
installed:
{ '4.0.0.GA': '/Users/Charles/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA',
'3.5.1.GA': '/Users/Charles/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA',
'3.5.0.GA': '/Users/Charles/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.GA',
'3.4.1.GA': '/Users/Charles/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA',
'3.4.0.GA': '/Users/Charles/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA' } }
TRACE | /usr/local/bin/node [ '/Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium',
'build',
'--platform',
'android',
'--log-level',
'trace',
'--sdk',
'4.0.0.GA',
'--project-dir',
'/Users/Charles/Documents/developer/titanium_studio_workspace/HelloWorld',
'--target',
'emulator',
'--android-sdk',
'/Users/Charles/android-sdk',
'--device-id',
'GalaxyTab10',
'--skip-js-minify',
'--liveview',
'--deploy-type',
'development',
'--no-colors',
'--no-progress-bars',
'--no-prompt',
'--prompt-type',
'socket-bundle',
'--prompt-port',
'50500',
'--username',
'rethman@me.com',
'--password',
'[HIDDEN]',
'--plugin-paths',
'/Users/Charles/.appcelerator/install/4.0.1/package/node_modules',
'--config-file',
'/var/folders/tg/sbf0zmz96n343tmjmfrqql6h0000gn/T/build-1433164675123.json',
'--no-banner' ]
{color:red}[ERROR] Application Installer abnormal process termination. Process exit value was 1
/Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
e.stack;
^
processImmediate [as _immediateCallback] (timers.js:358:17)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess. (/Users/Charles/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
{color}
Just a bit of extra info: I'm using Titanium build 4.0.0.201505202026 on with Android SDK 5.0.1 API 21. I can send a zip of the sandbox file that I have seen the problem on so that you can replicate.
Hi , can you please send us the result of executing this in the command line?
Ensure that you have Latest version(0.10.37) Node.JS installed. Thanks