Skip to content

Static bindings generation fails on mac #304

@Plamen5kov

Description

@Plamen5kov

When command is run:

tns build android --static-bindings

the following error occurred:

:asbg:runNpmInstallForAstParser
lazy@1.0.11 node_modules/lazy

filewalker@0.1.2 node_modules/filewalker
└── fqueue@0.0.0

uglify-js@2.6.1 node_modules/uglify-js
├── uglify-to-browserify@1.0.2
├── async@0.2.10
├── source-map@0.5.3
└── yargs@3.10.0 (window-size@0.1.0, decamelize@1.1.1, camelcase@1.2.1, cliui@2.1.0)
:asbg:runAstParser
OK: "../../../src/main/assets/app"

{ [Error: ENOENT, lstat '/Users/macaka/projects/cli_apps/test/platforms/android/build-tools/android-static-binding-generator/src/main/assets/app"']
  errno: -2,
  code: 'ENOENT',
  path: '/Users/macaka/projects/cli_apps/test/platforms/android/build-tools/android-static-binding-generator/src/main/assets/app"' }
:asbg:generateBindings
Exception in thread "main" java.io.FileNotFoundException: /Users/macaka/projects/cli_apps/test/platforms/android/build-tools/android-static-binding-generator/ast-parser/bindings.txt (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileInputStream.<init>(FileInputStream.java:93)
    at com.extend.generator.ExtendClassGenerator.ReadProxyNames(ExtendClassGenerator.java:50)
    at com.extend.generator.ExtendClassGenerator.main(ExtendClassGenerator.java:40)
:asbg:generateBindings FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':asbg:generateBindings'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions