Java Question First mistake when recompiling an old project

Sergio Castellari

Active Member
Licensed User
Longtime User
Hello,

When trying to recompile a previous project with the newly installed version, I get the following error:

B4A Version: 13.40
Parse code. Error
Error parsing the program.
Error description: Unknown type: smtp
Are you missing a library reference?
An error occurred on line: 295 (Functions)
Dim SMTP As SMTP

What could be the problem?

Regards,
Sergio
 

teddybear

Well-Known Member
Licensed User
It's obvious that you are missing the library net reference.
Check the paths configuration, is the additional libraries correct?
2026-02-28_220609_371.png
 
Last edited:

Sergio Castellari

Active Member
Licensed User
Longtime User
It's obvious that you are missing the library net reference.
Check the paths configuration, is the additional libraries correct?
View attachment 170318
Hi @teddybear

I have the route, but I think something is outdated from the last time I compiled. I'm using several additional libraries. Do they update automatically? Or do I need to perform some process for that? Also, I think there were more parameters configured somewhere, but I don't remember...

Thank you very much in advance for your guidance.

As a first step, I need to be able to recompile my last working app exactly as it was (obviously adjusting what's necessary).

1772304059930.png
 

Sergio Castellari

Active Member
Licensed User
Longtime User
It's obvious that you are missing the library net reference.
Check the paths configuration, is the additional libraries correct?
View attachment 170318
This is where I'm getting the error; obviously, I'm missing something or something has changed with the "LIB Net" library.

It's for sending emails from the app. Obviously, the email and password aren't real.

Thanks

Note: I've highlighted the line where the error is. It clearly doesn't recognize "SMTP".

1772305258923.png
 

josejad

Expert
Licensed User
Longtime User
Do you have the net library checked in the libraries tab?
 

Sergio Castellari

Active Member
Licensed User
Longtime User
Do you have the net library checked in the libraries tab?
Hi @josejad

It seems that "that" library no longer exists or has been replaced. However, since I don't plan to use email sending now, I simply removed that section of code and recompiled.

Incredibly, it compiled in "debug" mode!!!! And not only that, but I was also able to install it on the test phone and access the MariaDB database in the cloud!!!! First big victory!!!!!

But, there's always a but... during the compilation process, I got this error several times, and I don't know what it is! And I don't know how to fix it or what I should do to resolve it.
1772307523347.png
 
Top