Android Question Error : Symbol not found

jkhazraji

Active Member
Licensed User
Longtime User
Hello everybody,
I followed @Erel tutorial to create a b4a library. So I compiled it properly in Eclipse with the Doclet downloaded from the B4X site as recommended. I copied the resulting .jar and .xml files to the Additional Libraries subfolder of b4a program folder. I referred to the library from Library tab. Then I defined
B4X:
Private x as classname
a class instance as the (ShortName) in Java File and tried to use one of its methods (methodname).
When I run the app in b4a IDE I get the following error:
"Symbol not found"
with a preceding underscore added to the defined name ( _x.methodname ) which I don't know where from it came.
I am grateful to anybody who can explain this.
Regards.
 

agraham

Expert
Licensed User
Longtime User
with a preceding underscore added to the defined name ( _x.methodname ) which I don't know where from it came.
When compiling to Java B4X adds a leading underscore and lowercases names of variables and Subs. You only need to worry about this if you are using inline Java code.

I can't comment further without seeing the actual error message and the jar and xml.
 
Upvote 0
Top