Android Question Cannot find symbol Java

Rusty

Well-Known Member
Licensed User
Longtime User
I have recently updated both Java and the Android SDK.
I wrote a VERY simple 1 button example program and compiled it. The below is the error I receive.
I'm lost as to what I need to do next.
Thanks,
Rusty

B4A version: 5.02 (1)
Parsing code. (0.00s)
Compiling code. (0.02s)
Compiling layouts code. (0.00s)
Generating R file. (0.06s)
Compiling debugger engine code. (0.63s)
Compiling generated Java code. Error
javac 1.8.0_51
src\b4a\example\designerscripts\LS_layout1.java:9: error: cannot find symbol
public static void LS_general(java.util.LinkedHashMap<String, anywheresoftware.b4a.keywords.LayoutBuilder.ViewWrapperAndAnchor> views, int width, int height, float scale) {
^
symbol: class ViewWrapperAndAnchor
location: class LayoutBuilder
1 error
B4X:
Sub Process_Globals
End Sub

Sub Globals
    Private Button1 As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout1")
End Sub

Sub Activity_Resume
End Sub

Sub Activity_Pause (UserClosed As Boolean)
End Sub

Sub Button1_Click
End Sub
 

Rusty

Well-Known Member
Licensed User
Longtime User
OK. After a complete uninstall and re-install of Java/Android SDK and b4a, i am finally past this problem.
Now i am receiving strange errors on code that has compiled yesterday (unchanged), such as:
Too many parameters on the following:
B4X:
ThisSST.AddToQueue(Filepath, filename, language)

...

Public Sub AddToQueue(Path As String, FileName As String, LanguageNo As Int)
    If File.Exists(Path, FileName) Then
        ...
End Sub
In the above example, the too many parameters doesn't make sense to me...
ERROR:
B4A version: 5.02 (1)
Parsing code. (0.52s)
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Occurred on line: 106
ThisSTT.AddToQueue(FilePath, Filename, LanguageNo)
Word: _ref
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
I commented out the above lines of code and now when i run the compile i get:
What has happened to my compiler/setup that has caused this? Any ideas?
Rusty
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Finally, after UN installing B4a, UN installing Java, UN installing Android SDK, then re-installing them all; overlaying all the Android libraries with those from my backup (from 1 week ago), the program compiles and runs properly...
I have no idea what caused this to go bad, but at least it is resolve
Thanks for your advice.
Rusty
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…