Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execFile: C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb "help"
- spawn: C:\Users\User1\AppData\Local\Android\android-sdk\tools\android.bat "--help"
- Result when throw error is false:
- { stdout: '\n Usage:\n android [global options] action [action options]\n Global options:\n -s --silent : Silent mode, shows errors only.\n -v --verbose : Verbose mode, shows errors, warnings and all messages.\n --clear-cache: Clear the SDK Manager repository manifest cache.\n -h --help : Help on a specific command.\n\n Valid\n actions\n are\n composed\n of a verb\n and an\n optional\n direct\n object:\n- sdk : Displays the SDK Manager window.\n- avd : Displays the AVD Manager window.\n- list : Lists existing targets or virtual devices.\n- list avd : Lists existing Android Virtual Devices.\n- list target : Lists existing targets.\n- list device : Lists existing devices.\n- list sdk : Lists remote SDK repository.\n- create avd : Creates a new Android Virtual Device.\n- move avd : Moves or renames an Android Virtual Device.\n- delete avd : Deletes an Android Virtual Device.\n- update avd : Updates an Android Virtual Device to match the folders\n of a new SDK.\n- create project : Creates a new Android project.\n- update project : Updates an Android project (must already have an\n AndroidManifest.xml).\n- create test-project : Creates a new Android project for a test package.\n- update test-project : Updates the Android project for a test package (must\n already have an AndroidManifest.xml).\n- create lib-project : Creates a new Android library project.\n- update lib-project : Updates an Android library project (must already have\n an AndroidManifest.xml).\n- create uitest-project: Creates a new UI test project.\n- update adb : Updates adb to support the USB devices declared in the\n SDK add-ons.\n- update sdk : Updates the SDK by suggesting new platforms to install\n if available.\n',
- stderr: '',
- exitCode: 0 }
- 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 npm -v
- stdout: 2.15.5
- stderr:
- spawn: java "-version"
- Exec node-gyp -v
- stdout:
- stderr: 'node-gyp' is not recognized as an internal or external command,
- operable program or batch file.
- Exec "C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb" version
- stdout: Android Debug Bridge version 1.0.32
- Revision 09a0d98bebce-android
- stderr:
- spawn: C:\Users\User1\AppData\Local\Android\android-sdk\tools\android.bat "-h"
- Result when throw error is false:
- { stdout: '\n Usage:\n android [global options] action [action options]\n Global options:\n -s --silent : Silent mode, shows errors only.\n -v --verbose : Verbose mode, shows errors, warnings and all messages.\n --clear-cache: Clear the SDK Manager repository manifest cache.\n -h --help : Help on a specific command.\n\n Valid\n actions\n are\n composed\n of a verb\n and an\n optional\n direct\n object:\n- sdk : Displays the SDK Manager window.\n- avd : Displays the AVD Manager window.\n- list : Lists existing targets or virtual devices.\n- list avd : Lists existing Android Virtual Devices.\n- list target : Lists existing targets.\n- list device : Lists existing devices.\n- list sdk : Lists remote SDK repository.\n- create avd : Creates a new Android Virtual Device.\n- move avd : Moves or renames an Android Virtual Device.\n- delete avd : Deletes an Android Virtual Device.\n- update avd : Updates an Android Virtual Device to match the folders\n of a new SDK.\n- create project : Creates a new Android project.\n- update project : Updates an Android project (must already have an\n AndroidManifest.xml).\n- create test-project : Creates a new Android project for a test package.\n- update test-project : Updates the Android project for a test package (must\n already have an AndroidManifest.xml).\n- create lib-project : Creates a new Android library project.\n- update lib-project : Updates an Android library project (must already have\n an AndroidManifest.xml).\n- create uitest-project: Creates a new UI test project.\n- update adb : Updates adb to support the USB devices declared in the\n SDK add-ons.\n- update sdk : Updates the SDK by suggesting new platforms to install\n if available.\n',
- stderr: '',
- exitCode: 0 }
- Exec mono --version
- stdout:
- stderr: 'mono' is not recognized as an internal or external command,
- operable program or batch file.
- Exec git --version
- stdout: git version 2.8.3.windows.1
- stderr:
- Exec gradle -v
- stdout:
- stderr: 'gradle' is not recognized as an internal or external command,
- operable program or batch file.
- Exec "C:\Program Files\Java\jdk1.8.0_92\bin\javac" -version
- stdout:
- stderr: javac 1.8.0_92
- System information:
- { procInfo: 'nativescript/2.0.1',
- platform: 'win32',
- os: 'Windows 7 Professional 6.1.7601',
- shell: 'C:\\Windows\\system32\\cmd.exe',
- dotNetVer: '4.6.01055',
- procArch: 'x64',
- nodeVer: 'v4.4.5',
- npmVer: '2.15.5',
- javaVer: '1.8.0',
- nodeGypVer: null,
- xcodeVer: null,
- xcodeprojGemLocation: null,
- itunesInstalled: true,
- cocoapodVer: null,
- adbVer: 'Android Debug Bridge version 1.0.32',
- androidInstalled: true,
- monoVer: null,
- gitVer: '2.8.3.windows.1',
- gradleVer: null,
- javacVersion: '1.8.0_92' }
- Starting watch on killswitch C:\Users\user1\AppData\Local\Temp\User1\KillSwitches\cli
- Initializing analytics statuses.
- Analytics statuses:
- { TrackFeatureUsage: 1, TrackExceptions: 1 }
- Trying to track feature 'Non-interactive' with value 'build'.
- execFile: C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb "help"
- Looking for project in 'C:\Users\User1\Projects\NativeScript\test\test1'
- Project directory is 'C:\Users\User1\Projects\NativeScript\test\test1'.
- Analytics statuses:
- { TrackFeatureUsage: 1, TrackExceptions: 1 }
- Trying to track feature 'Non-interactive' with value 'build|android'.
- Hooks directories: [ 'C:\\Users\\User1\\AppData\\Roaming\\npm\\node_modules\\nativescript\\lib\\hooks',
- 'C:\\Users\\User1\\AppData\\Roaming\\npm\\node_modules\\nativescript\\lib\\common\\hooks',
- 'C:\\Users\\User1\\Projects\\NativeScript\\test\\test1\\hooks' ]
- BeforeHookName for command prepare is before-prepare
- Existing AndroidManifest.xml is correct.
- Existing AndroidManifest.xml is correct.
- spawn: C:\Users\User1\AppData\Local\Android\android-sdk\tools\android.bat "list" "targets"
- Result when throw error is false:
- { stdout: 'Available Android targets:\n----------\nid: 1 or "android-23"\n Name: Android 6.0\n Type: Platform\n API level: 23\n Revision: 3\n Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin360x325, AndroidWearRoundChin360x326, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare320x320\n Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, android-wear/armeabi-v7a\n----------\nid: 2 or "android-N"\n Name: Android N (Preview)\n Type: Platform\n API level: N\n Revision: 3\n Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in\n Tag/ABIs : no ABIs.\n',
- stderr: '',
- exitCode: 0 }
- Available Android targets:
- ----------
- id: 1 or "android-23"
- Name: Android 6.0
- Type: Platform
- API level: 23
- Revision: 3
- Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin360x325, AndroidWearRoundChin360x326, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare320x320
- Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, android-wear/armeabi-v7a
- ----------
- id: 2 or "android-N"
- Name: Android N (Preview)
- Type: Platform
- API level: N
- Revision: 3
- Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
- Tag/ABIs : no ABIs.
- Directories found in C:\Users\User1\AppData\Local\Android\android-sdk\build-tools are 23.0.2
- Versions found in C:\Users\User1\AppData\Local\Android\android-sdk\build-tools are 23.0.2
- Selected version is: 23.0.2
- Selected targetSdk is: 23
- Directories found in C:\Users\User1\AppData\Local\Android\android-sdk\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, 23.2.0, 23.2.1, 23.3.0, 23.4.0, 24.0.0-alpha1, 24.0.0-alpha2, 24.0.0-beta1, maven-metadata.xml, maven-metadata.xml.md5, maven-metadata.xml.sha1
- Versions found in C:\Users\User1\AppData\Local\Android\android-sdk\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, 23.2.0, 23.2.1, 23.3.0, 23.4.0, 24.0.0, 24.0.0, 24.0.0
- Selected version is: 23.4.0
- Selected AppCompat version is: 23.4.0
- Project successfully prepared
- AfterHookName for command prepare is after-prepare
- execFile: C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb "help"
- spawn: gradle.bat "buildapk" "-PcompileSdk=android-23" "-PtargetSdk=23" "-PbuildToolsVersion=23.0.2" "-PsupportVersion=23.4.0"
- Analytics statuses:
- { TrackFeatureUsage: 1, TrackExceptions: 1 }
- Trying to track feature 'Non-interactive' with value 'help'.
- List of registered commands: /?, appstore, appstore|upload, autocomplete, autocomplete|disable, autocomplete|enable, autocomplete|status, build, build|android, build|ios, create, debug, debug|android, debug|ios, deploy, dev-generate-help, dev-generate-messages, 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, info, init, install, livesync, platform, platform|add, platform|remove, platform|update, plugin, plugin|add, plugin|find, plugin|remove, plugin|search, prepare, publish, publish|ios, run, run|android, run|ios, test, test|android, test|init, test|ios, usage-reporting
- Reading help for command 'build|android'. FileName is 'build-android.md'.
- # build android
- ┌─────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ Usage │ Synopsis │
- │ General │ $ tns build android [--compileSdk <API Level>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--static-bindings] [--copy-to <File Path>] │
- └─────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
- ### Options
- * --compileSdk - Sets the Android SDK that will be used to build the project.
- * --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.
- * --static-bindings - This is an experimental feature. If set, generates static bindings from your JavaScript code to corresponding native Android APIs during build. This static bindings speed up app loading.**
- * --copy-to - Specifies the file path where the built .apk will be copied. If it points to a non-existent directory, it will be created. If the specified value is directory, the original file name will be used.
- ** By default, NativeScript runtime for Android uses runtime binding generator. When you extend a Java class and overwrite a lot of methods, this could be a potentially slow operation.
- ### Attributes
- <API Level> is a valid Android API level. For example: 22, 23.
- Analytics statuses:
- { TrackFeatureUsage: 1, TrackExceptions: 1 }
- Trying to track exception with message 'spawn gradle.bat ENOENT'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement