Android Question Unexplicable compilation error

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
I got this unexplicable situation: a compilation error, indicating an error on an unexisting line etc. The screen-shot explains what happens.. but I don't see any explication..
 

Attachments

  • problem.png
    problem.png
    60.5 KB · Views: 87

DonManfred

Expert
Licensed User
Longtime User
S1 is an Int. But previously you use S1 for another type of variable? String, Double, Long, CustomType?

Best is to put such ERRORS as TEXT as it is text. You can copy it. Much easier to read than a Image.

And it would be easier too if you switch the IDE to use English before posting such error as we all can read english.
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi. Thanks for you reply, but there is no s1 variable. I will try to decompose the program, piece by piece.. I don't see really any explanation..
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Anyway, this the error sequence in text form:

B4A Versione: 11.50
Analisi del Codice. (0.17s)
Java Versione: 11
Building folders structure. (0.04s)
Compilazione del codice. Error
Errore nella compilazione del programma.
Descrizione dell'errore: La dichiarazione attuale non corrisponde alla precedente.
Previous: {Type=s1,Rank=0, RemoteObject=False}
Current: {Type=Int,Rank=0, RemoteObject=True}
Errore nella linea: 66
Dim s1 As Int = Radius2 + (mValue - MinValue) / (MaxValue - MinValue) * size
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Line 66 is:

Dim AzMedMisura,ZeMedMisura,DiMedMisura As Double

S1 variable doesn't exist in y code.
Clearly what happens has nothing to deal with my code. Better: my code produces a problem somewhere.
Thanks for attention
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi. Yes. Tried cleaning. BUT DonManfred got the problem: I have a module named s1. Got the problem, but not the solution... Still I dont have any s1 variable..
 
Upvote 0

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
I ran into this before, a few years ago iirc. There may be a library that is using S1 in its code, try renaming your module to something else and see if that fixes it.
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Yes, I had same idea. Renamed s1 as SmsModule. Some progress, but still happens this:

B4A Versione: 11.50
Analisi del Codice. (0.18s)
Java Versione: 11
Building folders structure. (0.04s)
Compilazione del codice. Error
Errore analisi dello script del manifest:
Modulo s1_br non trovato (Manifest Editor)

Of course I updated the two calls to "s1" that I had previously, with the new name, and cleaned the project..
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Resuming: there seem to be a conflict in libraries on the name "s1". Things are not as simple as they seem: this code worked, with old name s1 and old MsgBox, MsgBox2async and CustomDialog. Then I substituted MsgBoxes and CustomDialog with B4XViews dialogs. After this, the "s1" problem appeared. So, empirically, just avoid to have a module called "s1" resolves.
 
Upvote 0
Top