Cannot find symbol setInlineStylesTheme error with Eclipse

39 views
Skip to first unread message

nguyendu...@gmail.com

unread,
Oct 9, 2017, 7:10:17 AM10/9/17
to CodenameOne Discussions
I'm using Eclipse on Windows 64bit and install Codename One plugin through marketplace. Everything was ok until I create a Form and use GUI builder to add components to it. When I close the component, the following error happen. It's kinda weird as I cannot find any information about this error on StackOverFlow or any other source. The screenshot as well as the gui interface are attached in this post. Below is the error log.

jar:
        [echo] Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
        [echo]         code size and wider device support
        [copy] Copying 1 file to E:\dev\Duy Anh CV\build\tmp
       [javac] E:\dev\Duy Anh CV\build.xml:105: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
       [javac] Compiling 3 source files to E:\dev\Duy Anh CV\build\tmp
       [javac] E:\dev\Duy Anh CV\src\com\aquasquare\mobile\GuiForm.java:21: error: cannot find symbol
       [javac]         setInlineStylesTheme(resourceObjectInstance);
       [javac]         ^
       [javac]   symbol:   method setInlineStylesTheme(Resources)
       [javac]   location: class GuiForm
       [javac] E:\dev\Duy Anh CV\src\com\aquasquare\mobile\GuiForm.java:22: error: cannot find symbol
       [javac]                 setInlineStylesTheme(resourceObjectInstance);
       [javac]                 ^
       [javac]   symbol:   method setInlineStylesTheme(Resources)
       [javac]   location: class GuiForm
       [javac] E:\dev\Duy Anh CV\src\com\aquasquare\mobile\GuiForm.java:28: error: cannot find symbol
       [javac]                 gui_Label.setInlineStylesTheme(resourceObjectInstance);
       [javac]                          ^
       [javac]   symbol:   method setInlineStylesTheme(Resources)
       [javac]   location: variable gui_Label of type Label
       [javac] E:\dev\Duy Anh CV\src\com\aquasquare\mobile\GuiForm.java:30: error: cannot find symbol
       [javac]         ((com.codename1.ui.layouts.LayeredLayout)gui_Label.getParent().getLayout()).setInsets(gui_Label, "26.996199% 46.22905% auto auto").setReferenceComponents(gui_Label, "-1 -1 -1 -1").setReferencePositions(gui_Label, "0.0 0.0 0.0 0.0");
       [javac]                                                                                    ^
       [javac]   symbol:   method setInsets(Label,String)
       [javac]   location: class LayeredLayout
       [javac] E:\dev\Duy Anh CV\src\com\aquasquare\mobile\GuiForm.java:32: error: cannot find symbol
       [javac]                 gui_Span_Label.setInlineStylesTheme(resourceObjectInstance);
       [javac]                               ^
       [javac]   symbol:   method setInlineStylesTheme(Resources)
       [javac]   location: variable gui_Span_Label of type SpanLabel
       [javac] E:\dev\Duy Anh CV\src\com\aquasquare\mobile\GuiForm.java:34: error: cannot find symbol
       [javac]         ((com.codename1.ui.layouts.LayeredLayout)gui_Span_Label.getParent().getLayout()).setInsets(gui_Span_Label, "29.277567% 23.324022% auto auto").setReferenceComponents(gui_Span_Label, "-1 -1 -1 -1").setReferencePositions(gui_Span_Label, "0.0 0.0 0.0 0.0");
       [javac]                                                                                         ^
       [javac]   symbol:   method setInsets(SpanLabel,String)
       [javac]   location: class LayeredLayout
       [javac] 6 errors


gui.png
Error.png

Steve Hannah

unread,
Oct 9, 2017, 8:39:30 PM10/9/17
to codenameone...@googlegroups.com
You need to update your project libs.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/501175a1-48e4-4698-92e7-4f33b8b2805e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Steve Hannah
Software Developer
Codename One

nguyendu...@gmail.com

unread,
Oct 9, 2017, 10:30:47 PM10/9/17
to CodenameOne Discussions
Thank you Steve, problem has been solved.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages