Advertisement
Guest User

Untitled

a guest
Jun 13th, 2016
953
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.75 KB | None | 0 0
  1.  
  2. execFile: C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb "help"
  3. spawn: C:\Users\User1\AppData\Local\Android\android-sdk\tools\android.bat "--help"
  4. Result when throw error is false:
  5. { 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',
  6. stderr: '',
  7. exitCode: 0 }
  8.  
  9. Usage:
  10. android [global options] action [action options]
  11. Global options:
  12. -s --silent : Silent mode, shows errors only.
  13. -v --verbose : Verbose mode, shows errors, warnings and all messages.
  14. --clear-cache: Clear the SDK Manager repository manifest cache.
  15. -h --help : Help on a specific command.
  16.  
  17. Valid
  18. actions
  19. are
  20. composed
  21. of a verb
  22. and an
  23. optional
  24. direct
  25. object:
  26. - sdk : Displays the SDK Manager window.
  27. - avd : Displays the AVD Manager window.
  28. - list : Lists existing targets or virtual devices.
  29. - list avd : Lists existing Android Virtual Devices.
  30. - list target : Lists existing targets.
  31. - list device : Lists existing devices.
  32. - list sdk : Lists remote SDK repository.
  33. - create avd : Creates a new Android Virtual Device.
  34. - move avd : Moves or renames an Android Virtual Device.
  35. - delete avd : Deletes an Android Virtual Device.
  36. - update avd : Updates an Android Virtual Device to match the folders
  37. of a new SDK.
  38. - create project : Creates a new Android project.
  39. - update project : Updates an Android project (must already have an
  40. AndroidManifest.xml).
  41. - create test-project : Creates a new Android project for a test package.
  42. - update test-project : Updates the Android project for a test package (must
  43. already have an AndroidManifest.xml).
  44. - create lib-project : Creates a new Android library project.
  45. - update lib-project : Updates an Android library project (must already have
  46. an AndroidManifest.xml).
  47. - create uitest-project: Creates a new UI test project.
  48. - update adb : Updates adb to support the USB devices declared in the
  49. SDK add-ons.
  50. - update sdk : Updates the SDK by suggesting new platforms to install
  51. if available.
  52.  
  53. Exec npm -v
  54. stdout: 2.15.5
  55.  
  56. stderr:
  57. spawn: java "-version"
  58. Exec node-gyp -v
  59. stdout:
  60. stderr: 'node-gyp' is not recognized as an internal or external command,
  61. operable program or batch file.
  62.  
  63. Exec "C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb" version
  64. stdout: Android Debug Bridge version 1.0.32
  65. Revision 09a0d98bebce-android
  66.  
  67. stderr:
  68. spawn: C:\Users\User1\AppData\Local\Android\android-sdk\tools\android.bat "-h"
  69. Result when throw error is false:
  70. { 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',
  71. stderr: '',
  72. exitCode: 0 }
  73. Exec mono --version
  74. stdout:
  75. stderr: 'mono' is not recognized as an internal or external command,
  76. operable program or batch file.
  77.  
  78. Exec git --version
  79. stdout: git version 2.8.3.windows.1
  80.  
  81. stderr:
  82. Exec gradle -v
  83. stdout:
  84. stderr: 'gradle' is not recognized as an internal or external command,
  85. operable program or batch file.
  86.  
  87. Exec "C:\Program Files\Java\jdk1.8.0_92\bin\javac" -version
  88. stdout:
  89. stderr: javac 1.8.0_92
  90.  
  91. System information:
  92. { procInfo: 'nativescript/2.0.1',
  93. platform: 'win32',
  94. os: 'Windows 7 Professional 6.1.7601',
  95. shell: 'C:\\Windows\\system32\\cmd.exe',
  96. dotNetVer: '4.6.01055',
  97. procArch: 'x64',
  98. nodeVer: 'v4.4.5',
  99. npmVer: '2.15.5',
  100. javaVer: '1.8.0',
  101. nodeGypVer: null,
  102. xcodeVer: null,
  103. xcodeprojGemLocation: null,
  104. itunesInstalled: true,
  105. cocoapodVer: null,
  106. adbVer: 'Android Debug Bridge version 1.0.32',
  107. androidInstalled: true,
  108. monoVer: null,
  109. gitVer: '2.8.3.windows.1',
  110. gradleVer: null,
  111. javacVersion: '1.8.0_92' }
  112. Starting watch on killswitch C:\Users\user1\AppData\Local\Temp\User1\KillSwitches\cli
  113. Initializing analytics statuses.
  114. Analytics statuses:
  115. { TrackFeatureUsage: 1, TrackExceptions: 1 }
  116. Trying to track feature 'Non-interactive' with value 'build'.
  117. execFile: C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb "help"
  118. Looking for project in 'C:\Users\User1\Projects\NativeScript\test\test1'
  119. Project directory is 'C:\Users\User1\Projects\NativeScript\test\test1'.
  120. Analytics statuses:
  121. { TrackFeatureUsage: 1, TrackExceptions: 1 }
  122. Trying to track feature 'Non-interactive' with value 'build|android'.
  123. Hooks directories: [ 'C:\\Users\\User1\\AppData\\Roaming\\npm\\node_modules\\nativescript\\lib\\hooks',
  124. 'C:\\Users\\User1\\AppData\\Roaming\\npm\\node_modules\\nativescript\\lib\\common\\hooks',
  125. 'C:\\Users\\User1\\Projects\\NativeScript\\test\\test1\\hooks' ]
  126. BeforeHookName for command prepare is before-prepare
  127. Existing AndroidManifest.xml is correct.
  128. Existing AndroidManifest.xml is correct.
  129. spawn: C:\Users\User1\AppData\Local\Android\android-sdk\tools\android.bat "list" "targets"
  130. Result when throw error is false:
  131. { 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',
  132. stderr: '',
  133. exitCode: 0 }
  134.  
  135. Available Android targets:
  136. ----------
  137. id: 1 or "android-23"
  138. Name: Android 6.0
  139. Type: Platform
  140. API level: 23
  141. Revision: 3
  142. Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin360x325, AndroidWearRoundChin360x326, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare320x320
  143. Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, android-wear/armeabi-v7a
  144. ----------
  145. id: 2 or "android-N"
  146. Name: Android N (Preview)
  147. Type: Platform
  148. API level: N
  149. Revision: 3
  150. Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
  151. Tag/ABIs : no ABIs.
  152.  
  153. Directories found in C:\Users\User1\AppData\Local\Android\android-sdk\build-tools are 23.0.2
  154. Versions found in C:\Users\User1\AppData\Local\Android\android-sdk\build-tools are 23.0.2
  155. Selected version is: 23.0.2
  156. Selected targetSdk is: 23
  157. 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
  158. 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
  159. Selected version is: 23.4.0
  160. Selected AppCompat version is: 23.4.0
  161. Project successfully prepared
  162. AfterHookName for command prepare is after-prepare
  163. execFile: C:\Users\User1\AppData\Local\Android\android-sdk\platform-tools\adb "help"
  164. spawn: gradle.bat "buildapk" "-PcompileSdk=android-23" "-PtargetSdk=23" "-PbuildToolsVersion=23.0.2" "-PsupportVersion=23.4.0"
  165. Analytics statuses:
  166. { TrackFeatureUsage: 1, TrackExceptions: 1 }
  167. Trying to track feature 'Non-interactive' with value 'help'.
  168. 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
  169. Reading help for command 'build|android'. FileName is 'build-android.md'.
  170. # build android
  171. ┌─────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  172. │ Usage │ Synopsis │
  173. │ 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>] │
  174. └─────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  175.  
  176. Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
  177.  
  178. ### Options
  179.  
  180. * --compileSdk - Sets the Android SDK that will be used to build the project.
  181. * --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
  182. * --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.
  183. * --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.
  184. * --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.
  185. * --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.
  186. * --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.**
  187. * --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.
  188.  
  189. ** 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.
  190.  
  191. ### Attributes
  192. <API Level> is a valid Android API level. For example: 22, 23.
  193.  
  194. Analytics statuses:
  195. { TrackFeatureUsage: 1, TrackExceptions: 1 }
  196. Trying to track exception with message 'spawn gradle.bat ENOENT'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement