Android Question XUI Views Current declaration does not match the previous one

Alexander Stolte

Expert
Licensed User
Longtime User
Hello, if i add the XUI Views b4xlib, then the log says:

B4X:
Current declaration does not match the previous one
Previous {Type=Content,Rank=0, RemoteObject=False}
Current: {Type=B4XView, Rank=0, RemoteObject=True}

upload_2019-1-14_21-35-36.png


What is that?
 

walterf25

Expert
Licensed User
Longtime User
Hello, if i add the XUI Views b4xlib, then the log says:

B4X:
Current declaration does not match the previous one
Previous {Type=Content,Rank=0, RemoteObject=False}
Current: {Type=B4XView, Rank=0, RemoteObject=True}

View attachment 76309

What is that?
You must have a variable declared twice and with different types.

Walter
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
You must have a variable declared twice and with different types.
in the same module not. This happend only if i add the xui view lib, without any changes.

or may I not do the following:
Module: main
B4X:
Dim tmp_view as B4XView

Module: anothermodule
B4X:
Dim tmp_view as Panel
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Can you upload the project?
it is a very big project.

I'm not sure that I understand.
The error occurs, because i have a variable name double with 2 different types, but this also occurs across modules? Because i dont change anything, i only check the XUI View lib on the lib. tab and then the error message is on the log.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
It shouldn't happen. If you like you can send me the project to [email protected] and I'll check it.
I found the Error, one of my Services, called "content" and in the XUI View lib. is a B4XView called "content". :eek:
 
Upvote 0

asales

Expert
Licensed User
Longtime User
For anyone that has the similar problem.
I have a module with the name "Scale" and I get the same error:
"Current declaration does not match previous one".
B4X:
Error compiling program.
Error description: Current declaration does not match previous one.
Previous: {Type=Scale,Rank=0, RemoteObject=False}
Current: {Type=Float,Rank=0, RemoteObject=True}
Error occurred on line: 21
Private Scale As Float
So, I change the name of the module to solve the problem.
 
Upvote 0
Top