B4J Question [SOLVED]Problem after update to verion 8.90

StarinschiAndrei

Active Member
Licensed User
Longtime User
Hi everyone,
i updated my B4J with the new version 8.90, i got this error ! can anybody help me ?
Thank you.
1613470067239.png
 

StarinschiAndrei

Active Member
Licensed User
Longtime User
Hi DonManfred , unfortunately i can't post a small project (the error is in a big project) because i don't know where the error come. I installed version 8.80 and there is no error. This message error appear with the new version 8.90.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Maybe you can at least post what you have in line 87?
Do you have some imageview (iv) declared as string or something like that? No clues with the error you get?
 
Upvote 0

StarinschiAndrei

Active Member
Licensed User
Longtime User
I installed again ver. 8.90 , i have the same error. There is no iv component in my project.


B4J Version: 8.90
Parsing code. (0.44s)
Java Version: 11
Building folders structure. (0.04s)
Compiling code. (0.77s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 87
iv.Initialize(Null, \
src\b4j\example\xuiviewsutils.java:142: error: method _initialize in class b4ximageview cannot be applied to given types;
_iv._initialize(ba,anywheresoftware.b4a.keywords.Common.Null,"");
^
required: b4ximageview,BA,Object,String
found: BA,Object,String
reason: actual and formal argument lists differ in length
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
The error look like it is in XUIViewsUtils.CreateB4XImageView
B4X:
'Creates a B4XImageView. You need to add B4XImageView.mBase to the layout tree.
Public Sub CreateB4XImageView As B4XImageView
    Dim iv As B4XImageView
    iv.Initialize(Null, "") ' <- ------------------------------Here I think
    Dim base As B4XView = xui.CreatePanel("")
    base.SetLayoutAnimated(0, 0, 0, 100dip, 100dip)
    iv.DesignerCreateView(base, Null, CreateMap("Round": False, "ResizeMode": "FIT", "BackgroundColor": 0xFFAAAAAA, "CornersRadius": 0))
    Return iv
End Sub
The compiler seems to think, in v8.90, that Initialize needs a B4XImageView instance as a parameter for some reason that only Erel will be able to suss out.
 
Upvote 0
Top