Skip to content

Instantly share code, notes, and snippets.

@vchimev
Created September 3, 2015 10:34
Show Gist options
  • Save vchimev/c820d34923bc03a70bd2 to your computer and use it in GitHub Desktop.
Save vchimev/c820d34923bc03a70bd2 to your computer and use it in GitHub Desktop.
VCHIMEVMAC:master vchimev$ node_modules/.bin/tns plugin add nativescript-telerik-ui --path appUI
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
nativescript-telerik-ui@0.0.8 appUI/node_modules/nativescript-telerik-ui
└── nativescript-plugin-appcompat@22.2.1
Successfully installed plugin nativescript-telerik-ui.
VCHIMEVMAC:master vchimev$ node_modules/.bin/tns platform add android --path appUI
Copying template files...
Project successfully created.
VCHIMEVMAC:master vchimev$ node_modules/.bin/tns build android --path appUI
You have tns_modules dir in your app folder. It will not be used and you can safely remove it.
Successfully prepared plugin nativescript-telerik-ui for android.
Successfully prepared plugin nativescript-plugin-appcompat for android.
Project successfully prepared
execute: copyAarDependencies, addAarDependencies before configuration
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAppcompatV72220Library
:prepareComAndroidSupportSupportV42220Library
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:deleteJavaDir UP-TO-DATE
:cleanLocalAarFiles UP-TO-DATE
:collectAllJars
:ensureMetadataOutDir
:buildMetadata
Skip com.telerik.android.primitives.widget.sidedrawer.BlurFadeLayer
:copyMetadata
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:processDebugJavaRes UP-TO-DATE
:compileDebugJavaWithJavac
:compileDebugNdk UP-TO-DATE
:compileDebugSources
:preDexDebug
:dexDebug
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define Landroid/support/v7/app/ActionBar$DisplayOptions;
Unknown source file : at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
Unknown source file : at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
Unknown source file : at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
Unknown source file : at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
Unknown source file : at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
Unknown source file : at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
Unknown source file : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
Unknown source file : at com.android.dx.command.dexer.Main.run(Main.java:246)
Unknown source file : at com.android.dx.command.dexer.Main.main(Main.java:215)
Unknown source file : at com.android.dx.command.Main.main(Main.java:106)
:dexDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.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.
BUILD FAILED
Total time: 38.908 secs
Command gradle failed with exit code 1
# build android
┌─────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ General │ $ tns build android [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password │
│ │ <Password>] [--release] [--static-bindings] │
└─────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
### Options
* --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 - If set, generates static bindings from your JavaScript code to corresponding native Android APIs during build. This static bindings speed up app loading.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment