tizen build-app is not working

tizen build-app is not working

BY 13 Jun 2017 General Support

Hi,

 

I need package a web application and a native service together, so I tried with tizen build-app. Unfortunately, I can’t make it work.

 

I followed the instruction from https://developer.tizen.org/ko/development/tizen-studio/web-tools/cli?langredirect=1 and below are my steps:

 

 

  • create a web application: 

    tizen create web-project -n webApp -p wearable-2.3.2 -t WebBasicapplication

  • create a native service: 

    tizen create native-project -n nativeService -p wearable-2.3.2 -t ServiceApp

  • build the web application: 

    tizen build-web — ./webApp

  • build the native service: 

    tizen build-native -a arm -c llvm -C Debug — ./nativeService

  • package them together: 

    tizen build-app -p “name:app1,targets:[webApp,nativeService]”

However, I got the below output:

 

An error has occurred. See the log file tizen-sdk/tools/ide/ncli.log.

Total time: 00:00:00.230

 

 

And the ncli.log file showed the following:

 

2017-06-12 17:05:09,914 [TRACE] Main.java(89) – Start running Tizen CLI Main class…

2017-06-12 17:05:09,919 [TRACE] Main.java(90) – Argument count:5

2017-06-12 17:05:09,930 [TRACE] BuildAppCLI.java(69) – Execute BuildNativeCLI…

2017-06-12 17:05:10,158 [ERROR] AbstractCLI.java(87) – 

java.lang.NullPointerException

    at org.tizen.ncli.subcommands.build.buildapp.BuildAppCLICommand.makeBuildProjectList(BuildAppCLICommand.java:564)

    at org.tizen.ncli.subcommands.build.buildapp.BuildAppCLICommand.makeBuildProjectListAll(BuildAppCLICommand.java:630)

    at org.tizen.ncli.subcommands.build.buildapp.BuildAppCLICommand.call(BuildAppCLICommand.java:1186)

    at org.tizen.ncli.subcommands.build.buildapp.BuildAppCLICommand.call(BuildAppCLICommand.java:76)

    at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:85)

    at org.tizen.ncli.ide.shell.BuildAppCLI.execute(BuildAppCLI.java:112)

    at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:85)

    at org.tizen.ncli.ide.shell.Main.run(Main.java:143)

    at org.tizen.ncli.ide.shell.Main.main(Main.java:77)

2017-06-12 17:05:10,161 [ERROR] Main.java(151) – 

 

 

Please help. Thanks a lot. 

 

 

Written by