Search Unity

No argument is allowed

Discussion in 'Tizen' started by Jonny-Roy, Nov 13, 2015.

  1. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Hi,

    I'm getting the following error at the last stage of the build:

    C:/tizen-sdk\tools\ide/bin/tizen.bat package -- "C:\Users\Jonny\workspace\Watch\Test\Temp\StagingArea\build" -t tpk -s

    Error: No argument is allowed: C:"

    Has anyone else come across this, or knows of a work around?

    Thanks,

    Jon
     
  2. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    Have you set the signing profile name in player settings? It should be listed after the -s.
     
    Jonny-Roy likes this.
  3. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Okay got a step further, it was because I didn't
    Ha, I just figured that! But not I'm getting:


    -----------------------------------------------------
    Starting package
    -----------------------------------------------------

    -----------------------------------------------------
    Finished package

    Exception in thread "main" java.lang.NoClassDefFoundError: org/tizen/tpklib/exception/TPKException
    at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:780)
    at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:89)
    at org.tizen.ncli.ide.shell.Main.run(Main.java:135)
    at org.tizen.ncli.ide.shell.Main.main(Main.java:72)
    Caused by: java.lang.ClassNotFoundException: org.tizen.tpklib.exception.TPKException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 4 more

    UnityEditor.HostView:OnGUI()

    Any idea what that could be?
     
  4. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    I think I've seen that before. Do you have Java 1.8 installed?
     
  5. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    I have jdk1.8.0_25, so it should be good.
     
  6. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    It's not because it's the latest Tizen SDK is it?
     
  7. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    You mean 2.4? It could be. There is at least one issue with it that I have fixed but has not been released yet.
     
  8. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Okay made progress, it's building, just can't get move the built file, FYI the issue was the Native IDE hadn't installed in the SDK Manager!

    the tpk gets created, it just can't seem to copy it...maybe permissions...I'll try running Unity as Admin.
     
    FreebordMAD likes this.
  9. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    If you're using the 2.4 SDK then that won't help.

    However you may be able to manually install the tpk for now. Find the tpk and install it using this command:

    sdb install package.tpk

    You'll need to replace package.tpk with the full path to the tpk file and also sdb with the full path to sdb in the Tizen SDK.
     
  10. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Okay, it kind of worked, but failed:

    pulled Test.tpk 100% 10MB
    1 file(s) pulled. 0 file(s) skipped.
    F:\SyncData\Unity\Projects\Watch\TestWatch\Test.tpk 433 KB/s (10782480 by
    tes in 24.315s)
    path is /opt/usr/apps/tmp/Test.tpk
    __return_cb req_id[98100002] pkg_type[rpm] pkgid[Invalid package] key[start] val
    [install]
    __return_cb req_id[98100002] pkg_type[rpm] pkgid[Invalid package] key[end] val[f
    ail]
    processing result : FATAL_ERROR [61] failed
    spend time for pkgcmd is [986]ms
    rm: remove write-protected regular file `/opt/usr/apps/tmp/Test.tpk'?

    Would this be better from the Beta 5.3?
     
  11. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    It's possible that it could be. It's at least worth trying.
     
  12. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Worked in 5.3

    I must say, I'm impressed, it might be a simple scene but it's running on a Samsung Gear S2 Classic...very cool.

    Weirdly crashed on first run, but second run worked fine.
     
  13. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    Wait, what? You have Unity running on a Gear smartwatch? That's the first I've heard of it but certainly not supported.
     
    hippocoder likes this.
  14. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Yes, that is correct... I must say I did not think it would work but...yes it works!
     
    Hexagon-Neuron and hippocoder like this.
  15. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Hey Masterfalcon, You say not supported...but given that it works, and seems to work quite well (just done a more complex scene with realtime reflections!) is it something that will be supported in the future? I'd be more than happy to report any bugs in the 5.3 Beta, with repros.
     
    Hexagon-Neuron likes this.
  16. Hexagon-Neuron

    Hexagon-Neuron

    Joined:
    Oct 1, 2010
    Posts:
    305
    I would love to see a list of software versions used to get Tizen Workinng on the Gear S2 @Jonny Roy!

    Also can you access the rotation bezel in the API?
     
  17. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    It's the same as the Unity instructions except you do it for wearable

    http://developer.samsung.com/gear/samsung-gear-develop#sdk-download

    You basically follow samsungs links for Standalone on this page, take into account 2.4 does not support wearable so you have to do 2.3.1

    You can access the bezel through c++ only, not from c#, so you have to write a native plugin to do it, but yes you can, again Unity has some pretty good documents on how to do a plugin and there is another thread where I posted a very simple one for Tizen.
     
    Hexagon-Neuron likes this.
  18. Hexagon-Neuron

    Hexagon-Neuron

    Joined:
    Oct 1, 2010
    Posts:
    305
    Interesting! Shame about the bezel, not sure if I have the time to get into c++. Either way I might have a play this weekend. Thanks for sharing Jonny.
     
    Last edited: Nov 25, 2015
    Jonny-Roy likes this.
  19. AlexThibodeau

    AlexThibodeau

    Unity Technologies

    Joined:
    Jul 23, 2013
    Posts:
    309
    What did you do here to fix that issue? I'm curious because I'm seeing it on my machine. :)
     
  20. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    660
    Hi Alex,

    Is it actually creating the TPK, for it to actually deploy the TPK from Unity, you need to make sure you have the latest Unity and the latest Tizen SDK, basically there seems to be a confilict if you use an older SDK and newer Unity or vice versa.

    This is the latest version as of now:

    https://developer.tizen.org/development/tools/download?langswitch=en

    Sometimes if you google it will take you to 2.3 page instead of 2.4!
     
    AlexThibodeau likes this.
  21. Manish-Unity

    Manish-Unity

    Joined:
    Jun 11, 2014
    Posts:
    2

    Hi Masterfalcon,
    Even I am getting the same Error while Creating the Build
    C:/tizen-sdk\tools\ide/bin/tizen.bat package -- "D:\Demo\Temp\StagingArea\build" -t tpk -s

    Error: No argument is allowed: D:"

    Usage: tizen package [args]
    -- working directory Specify where the base directory is for the
    command
    --help (-h) Show detailed explanation for given command
    --output (-o) path Output file paths (for re-package).
    --reference (-r) path[;...] Reference prj paths (for HybridApp package).
    --sign (-s) VAL Specify profile name.
    --strip (-S) on | off on Specify whether to strip binary or not.
    --type (-t) tpk | wgt packaging type. (Required)

    UnityEditor.HostView:OnGUI()


    Also I am using latest Tizen Sdk 2.4, Jdk 1.8 on Windows 10 machine. For this I tried creating certificate as mention in the Unity Tizen support document. It would be great that if you can help me out on this.


    Thanks
    Manish Jaswani
     
  22. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    What version of Unity are you using?