Languages

Menu
Sites
Language
Unity 3d CLI Error Not Start App

Unity build and run error :

An error has occurred. See the log file tizen-sdk\tools\ide\cli.log.

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

 

And cli.log:

2017-05-24 04:10:16,456 [TRACE] ConfigCLI.java(78) - Execute configCLI...
2017-05-24 04:10:18,832 [TRACE] Main.java(90) - Start running Tizen CLI Main class...
2017-05-24 04:10:18,838 [TRACE] Main.java(91) - Argument count:9
2017-05-24 04:10:18,857 [TRACE] PackageCLI.java(981) - Execute PackageCLI...
2017-05-24 04:10:18,858 [TRACE] PackageCLI.java(983) - getRealWorkingPath: C:\Users\levge\Documents\test01\Temp\StagingArea\build
2017-05-24 04:10:27,087 [TRACE] Main.java(90) - Start running Tizen CLI Main class...
2017-05-24 04:10:27,098 [TRACE] Main.java(91) - Argument count:5
2017-05-24 04:10:27,116 [TRACE] RunCLI.java(56) - Execute RunCLI...
2017-05-24 04:10:27,196 [ERROR] AbstractCLI.java(94) - 
java.lang.NullPointerException
    at org.tizen.ncli.util.TargetUtil.getTargets(TargetUtil.java:96)
    at org.tizen.ncli.util.TargetUtil.getTargetByName(TargetUtil.java:150)
    at org.tizen.ncli.subcommands.target.RunCLICommand.setTargetByName(RunCLICommand.java:141)
    at org.tizen.ncli.ide.shell.RunCLI.execute(RunCLI.java:63)
    at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:92)
    at org.tizen.ncli.ide.shell.Main.run(Main.java:144)
    at org.tizen.ncli.ide.shell.Main.main(Main.java:78)
2017-05-24 04:10:27,199 [ERROR] Main.java(152) - 

 

View Selected Answer

Responses

3 Replies
André Reus

hi~

First Check your Java Home is correctly set or not. 

Then Make sure your Tizen CLI path is set. 

For Build and Run follow these steps

  1. In the Unity Editor, go to File > Build settings….
  2. Switch to the Tizen platform.
  3. Ensure that Development build is checked.
  4. Next click on Player Settings.
  5. Under Publishing Setting enter the name of the signing profile that you created in the Tizen IDE. If you didn’t give it a custom name or rename it in the IDE, then you should enter “default”.
  6. Click the Build and Run button. Unity makes the game for you and deploys it to the device. The game then starts up on the device.

On Publishing Settings:

* Make sure that on deployment target your device id is shown as per image. You have to click on Discover button to confirm it.

* And check your Signing Profile Name on Tize IDE and compare it with this setting, If doesn't match changed it in Unity Player Settings. 

 

 

On Other Settings:

* Make sure your Build Identifier is matched with your package name.

* If all the things are okay, then click on Build and Run. 

 

 

Serdar Özkan

SOLVED 

The cause of the problem

My version is out of date

I have installed the new version for the solution.