java - invalid "Unresolved compilation problems" in codenameone -


i have invalid "unresolved compilation problems" in codenameone:

the project has valid syntax , works fine on other systems.

however, on system, have strange compilation errors... says specified function undefined, defined. here 1 example:

for following code line:

container c = new container(); label l = new label ("label"); c.add(l); 

(i import com.codename1.ui.container , import com.codename1.ui.label)

i following error:

java.lang.reflect.invocationtargetexception     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:483)     @ com.codename1.impl.javase.executor$1$1.run(executor.java:100)     @ com.codename1.ui.display.processserialcalls(display.java:1144)     @ com.codename1.ui.display.mainedtloop(display.java:963)     @ com.codename1.ui.runnablewrapper.run(runnablewrapper.java:120)     @ com.codename1.impl.codenameonethread.run(codenameonethread.java:176) caused by: java.lang.error: unresolved compilation problem:      method add(label) undefined type container      @ com.mycompany.hi.hiworld.start(hiworld.java:53)     ... 9 more 

it compiles fine if change c.add(l) c.addcomponent(l).

i have latest version of codenameone (1.0.0.201511241324) , java jdk (jdk1.8.0_65).

thanks!

i'm assuming old project? did change classpath in way?

did use versioned build?

if install older version of libraries temporarily.

add method added in past couple of months (before had addcomponent. if built against older version have failed.

you can go project properties, in codename 1 section press "update client libs" button refresh project. should either trigger error on add if use versioned build or allow run.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -