Skip to content

Instantly share code, notes, and snippets.

@tjvantoll
Created January 5, 2016 16:48
Show Gist options
  • Save tjvantoll/fdeac9c3c09415e0c7c4 to your computer and use it in GitHub Desktop.
Save tjvantoll/fdeac9c3c09415e0c7c4 to your computer and use it in GitHub Desktop.
execFile: /usr/local/Cellar/android-sdk/24.3.3/platform-tools/adb "help"
spawn: /usr/local/Cellar/android-sdk/24.3.3/tools/android "--help"
Usage:
android [global options] action [action options]
Global options:
-s --silent : Silent mode, shows errors only.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-h --help : Help on a specific command.
Valid
actions
are
composed
of a verb
and an
optional
direct
object:
- sdk : Displays the SDK Manager window.
- avd : Displays the AVD Manager window.
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- list device : Lists existing devices.
- list sdk : Lists remote SDK repository.
- create avd : Creates a new Android Virtual Device.
- move avd : Moves or renames an Android Virtual Device.
- delete avd : Deletes an Android Virtual Device.
- update avd : Updates an Android Virtual Device to match the folders
of a new SDK.
- create project : Creates a new Android project.
- update project : Updates an Android project (must already have an
AndroidManifest.xml).
- create test-project : Creates a new Android project for a test package.
- update test-project : Updates the Android project for a test package (must
already have an AndroidManifest.xml).
- create lib-project : Creates a new Android library project.
- update lib-project : Updates an Android library project (must already have
an AndroidManifest.xml).
- create uitest-project: Creates a new UI test project.
- update adb : Updates adb to support the USB devices declared in the
SDK add-ons.
- update sdk : Updates the SDK by suggesting new platforms to install
if available.
Exec uname -a
stdout: Darwin VANTOLLMAC-7.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
stderr:
Exec npm -v
stdout: 2.14.7
stderr:
spawn: java "-version"
Exec node-gyp -v
stdout:
stderr: /bin/sh: node-gyp: command not found
Exec xcodebuild -version
stdout: Xcode 7.1.1
Build version 7B1005
stderr:
Exec pod --version
stdout: 0.39.0
stderr:
Exec '/usr/local/Cellar/android-sdk/24.3.3/platform-tools/adb' version
stdout: Android Debug Bridge version 1.0.32
Revision 09a0d98bebce-android
stderr:
spawn: /usr/local/Cellar/android-sdk/24.3.3/tools/android "-h"
Exec mono --version
stdout:
stderr: /bin/sh: mono: command not found
Exec git --version
stdout: git version 2.2.1
stderr:
Exec gradle -v
stdout:
------------------------------------------------------------
Gradle 2.6
------------------------------------------------------------
Build time: 2015-08-10 13:15:06 UTC
Build number: none
Revision: 233bbf8e47c82f72cb898b3e0a96b85d0aad166e
Groovy: 2.3.10
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_65 (Oracle Corporation 25.65-b01)
OS: Mac OS X 10.11.2 x86_64
stderr:
Exec "/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/javac" -version
stdout:
stderr: javac 1.8.0_65
System information:
{ procInfo: 'nativescript/1.5.2',
platform: 'darwin',
os: 'Darwin VANTOLLMAC-7.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64\n',
shell: '/bin/bash',
dotNetVer: null,
procArch: 'x64',
nodeVer: 'v4.2.1',
npmVer: '2.14.7',
javaVer: '1.8.0',
nodeGypVer: null,
xcodeVer: 'Xcode 7.1.1\nBuild version 7B1005\n',
itunesInstalled: true,
cocoapodVer: '0.39.0',
adbVer: 'Android Debug Bridge version 1.0.32',
androidInstalled: true,
monoVer: null,
gitVer: '2.2.1',
gradleVer: '2.6',
javacVersion: '1.8.0_65' }
Initializing analytics statuses.
Analytics statuses:
{ TrackFeatureUsage: 0, TrackExceptions: 0 }
Trying to track feature 'Non-interactive' with value 'run'.
AnalyticsInstallationID: c52a4334-e109-400a-a769-c5c838b5ed94
monitor not started
monitor not started
monitor has started, connecting to http://5752dabccfc54c4ab82aea9626b7338e.monitor-eqatec.com/json.ashx
execFile: /usr/local/Cellar/android-sdk/24.3.3/platform-tools/adb "help"
spawn: /usr/local/Cellar/android-sdk/24.3.3/platform-tools/adb "start-server"
Statistics was sent successfully (xhr).
Looking for project in '/Users/tj/dev/nativescript/sample-Groceries'
Statistics was sent successfully (xhr).
Project directory is '/Users/tj/dev/nativescript/sample-Groceries'.
Analytics statuses:
{ TrackFeatureUsage: 0, TrackExceptions: 0 }
Trying to track feature 'Non-interactive' with value 'run|android'.
startLookingForDevices; platform is Android
spawn: /usr/local/Cellar/android-sdk/24.3.3/platform-tools/adb "devices"
spawn: /usr/local/Cellar/android-sdk/24.3.3/platform-tools/adb "-s" "192.168.57.101:5555" "shell" "getprop"
{ all_codenames: 'REL',
codename: 'REL',
incremental: 'eng.buildbot.20151117.200402',
release: '5.1',
sdk: '22',
board: '',
brand: 'generic',
'cpu.abi': 'x86',
'cpu.abilist32': 'x86',
'cpu.abilist64': '',
'cpu.abilist': 'x86',
device: 'vbox86p',
'locale.language': 'en',
'locale.region': 'US',
manufacturer: 'unknown',
model: 'Google Nexus 5 - 5.1.0 - API 22 - 1080x1920',
name: 'vbox86p' }
Found device with identifier '192.168.57.101:5555'
Hooks directories: [ '/usr/local/lib/node_modules/nativescript/lib/hooks',
'/usr/local/lib/node_modules/nativescript/lib/common/hooks',
'/Users/tj/dev/nativescript/sample-Groceries/hooks' ]
BeforeHookName for command prepare is before-prepare
Statistics was sent successfully (xhr).
Project successfully prepared
AfterHookName for command prepare is after-prepare
spawn: /usr/local/Cellar/android-sdk/24.3.3/tools/android "list" "targets"
Available Android targets:
----------
id: 1 or "android-17"
Name: Android 4.2.2
Type: Platform
API level: 17
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : no ABIs.
----------
id: 2 or "android-21"
Name: Android 5.0.1
Type: Platform
API level: 21
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : no ABIs.
----------
id: 3 or "android-22"
Name: Android 5.1.1
Type: Platform
API level: 22
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a, default/x86_64
----------
id: 4 or "android-23"
Name: Android 6.0
Type: Platform
API level: 23
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a, default/x86_64
Directories found in /usr/local/Cellar/android-sdk/24.3.3/build-tools are 22.0.1, 23.0.2
Versions found in /usr/local/Cellar/android-sdk/24.3.3/build-tools are 22.0.1, 23.0.2
Selected targetSdk is: 23
Directories found in /usr/local/Cellar/android-sdk/24.3.3/extras/android/m2repository/com/android/support/appcompat-v7 are 18.0.0, 19.0.0, 19.0.1, 19.1.0, 20.0.0, 21.0.0, 21.0.2, 21.0.3, 22.0.0, 22.1.0, 22.1.1, 22.2.0, 22.2.1, 23.0.0, 23.0.1, 23.1.0, 23.1.1, maven-metadata.xml, maven-metadata.xml.md5, maven-metadata.xml.sha1
Versions found in /usr/local/Cellar/android-sdk/24.3.3/extras/android/m2repository/com/android/support/appcompat-v7 are 18.0.0, 19.0.0, 19.0.1, 19.1.0, 20.0.0, 21.0.0, 21.0.2, 21.0.3, 22.0.0, 22.1.0, 22.1.1, 22.2.0, 22.2.1, 23.0.0, 23.0.1, 23.1.0, 23.1.1
Selected AppCompat version is: 23.1.1
spawn: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/gradlew "buildapk" "-PcompileSdk=android-23" "-PtargetSdk=23" "-PbuildToolsVersion=23.0.2" "-PsupportVersion=23.1.1"
:config phase: createDefaultIncludeFiles
+found plugins: nativescript-telerik-ui
:config phase: createPluginsConfigFile
+creating product flavors include.gradle file in configurations folder...
:config phase: pluginExtend
+applying configuration from: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/configurations/include.gradle
+applying configuration from: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/configurations/nativescript-telerik-ui/include.gradle
:config phase: copyAarDependencies
:config phase: addAarDependencies
+adding dependency: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/libs/aar/Chart-2015.3.1016-dev-release.aar
+adding dependency: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/libs/aar/Common-2015.3.1016-dev-release.aar
+adding dependency: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/libs/aar/Data-2015.3.1016-dev-release.aar
+adding dependency: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/libs/aar/List-2015.3.1016-dev-release.aar
+adding dependency: /Users/tj/dev/nativescript/sample-Groceries/platforms/android/libs/aar/Primitives-2015.3.1016-dev-release.aar
:preBuild UP-TO-DATE
:preNativescript-telerik-uiDebugBuild UP-TO-DATE
:checkNativescript-telerik-uiDebugManifest
:preNativescript-telerik-uiReleaseBuild UP-TO-DATE
:prepareChart201531016DevReleaseLibrary UP-TO-DATE
:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:prepareCommon201531016DevReleaseLibrary UP-TO-DATE
:prepareData201531016DevReleaseLibrary UP-TO-DATE
:prepareList201531016DevReleaseLibrary UP-TO-DATE
:preparePrimitives201531016DevReleaseLibrary UP-TO-DATE
:prepareNativescript-telerik-uiDebugDependencies
:compileNativescript-telerik-uiDebugAidl UP-TO-DATE
:compileNativescript-telerik-uiDebugRenderscript UP-TO-DATE
:generateNativescript-telerik-uiDebugBuildConfig UP-TO-DATE
:cleanLocalAarFiles
:deleteJavaDir UP-TO-DATE
:ensureMetadataOutDir UP-TO-DATE
:collectAllJars
:isMetadataGenerationNecessary UP-TO-DATE
:buildMetadata UP-TO-DATE
:copyMetadata UP-TO-DATE
:generateNativescript-telerik-uiDebugAssets UP-TO-DATE
:mergeNativescript-telerik-uiDebugAssets UP-TO-DATE
:generateNativescript-telerik-uiDebugResValues UP-TO-DATE
:generateNativescript-telerik-uiDebugResources UP-TO-DATE
:mergeNativescript-telerik-uiDebugResources UP-TO-DATE
:processNativescript-telerik-uiDebugManifest UP-TO-DATE
:processNativescript-telerik-uiDebugResources UP-TO-DATE
:generateNativescript-telerik-uiDebugSources UP-TO-DATE
:processNativescript-telerik-uiDebugJavaRes UP-TO-DATE
:compileNativescript-telerik-uiDebugJavaWithJavac UP-TO-DATE
:compileNativescript-telerik-uiDebugNdk UP-TO-DATE
:compileNativescript-telerik-uiDebugSources UP-TO-DATE
:preDexNativescript-telerik-uiDebug UP-TO-DATE
:dexNativescript-telerik-uiDebug FAILED
BUILD FAILED
Total time: 7.693 secs
Analytics statuses:
{ TrackFeatureUsage: 0, TrackExceptions: 0 }
Trying to track feature 'Non-interactive' with value 'help'.
List of registered commands: /?, autocomplete, autocomplete|disable, autocomplete|enable, autocomplete|status, build, build|android, build|ios, create, debug, debug|android, debug|ios, deploy, dev-post-install, dev-preuninstall, dev-test, dev-test|android, dev-test|ios, device, device|android, device|get-file, device|ios, device|list-applications, device|list-files, device|log, device|put-file, device|run, device|stop, device|uninstall, doctor, emulate, emulate|android, emulate|ios, error-reporting, help, init, install, library, library|add, livesync, platform, platform|add, platform|remove, platform|update, plugin, plugin|add, plugin|remove, prepare, run, run|android, run|ios, test, test|android, test|init, test|ios, usage-reporting
Reading help for command 'run|android'. FileName is 'run-android.md'.
# run android
┌────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Run on all connected devices and running emulators │ $ tns run android [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch] │
│ Run on a selected connected device or running emulator │ $ tns run android --device <Device ID> [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch] │
│ Start an emulator and run the app inside it │ $ tns run android --emulator [<Emulator Options>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch] │
└────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console.
### Options
* --device - Specifies a connected device on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
### Attributes
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define LJsDebugRun;
Unknown source file : at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:579)
Unknown source file : at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:535)
Unknown source file : at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:517)
Unknown source file : at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)
Unknown source file : at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
Unknown source file : at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
Unknown source file : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
Unknown source file : at com.android.dx.command.dexer.Main.run(Main.java:277)
Unknown source file : at com.android.dx.command.dexer.Main.main(Main.java:245)
Unknown source file : at com.android.dx.command.Main.main(Main.java:106)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dexNativescript-telerik-uiDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: Command /Users/tj/dev/nativescript/sample-Groceries/platforms/android/gradlew failed with exit code 1
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:535:15)
at /usr/local/lib/node_modules/nativescript/lib/common/errors.js:109:33
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:534:10)
at /usr/local/lib/node_modules/nativescript/lib/common/services/commands-service.js:87:106
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:534:10)
at /usr/local/lib/node_modules/nativescript/lib/common/yok.js:209:124
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:534:10)
at /usr/local/lib/node_modules/nativescript/lib/common/services/commands-service.js:54:55
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:534:10)
at /usr/local/lib/node_modules/nativescript/lib/common/errors.js:109:33
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:534:10)
- - - - -
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/common/child-process.js:89:38)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment