Android Question Kann nicht auf ausgeschlossenes Modul zugreifen:

Peter128

Member
Licensed User
Longtime User
B4J

Bekomme oben genannte Meldung beim Erstellen einer Bibliothek. In der Editorumgebung läuft alle ohne Probleme. Das genannte Modul ist das Startmodul. Wer kann helfen. ?

Can not access excluded module:
Get the above message when creating a library. The editor environment runs without any problems. The named module is the start module. Who can help. ?
 

Semen Matusovskiy

Well-Known Member
Licensed User
Do you talk about B4J or B4A ? This is B4A forum

If do you talk about B4A, see https://www.b4x.com/android/forum/t...tion-compile-your-project-to-a-library.24750/
Library does not include main module
Compiling to a library is quite simple. Under Project menu there is a new compile option - "Compile To Library (Alt + 5)". When you choose this option all the modules except of the main activity are compiled into a library.

About B4J - looks like the same approach (Main is not included, you can't use references Main.xxx)
 
Last edited:
Upvote 0

Peter128

Member
Licensed User
Longtime User
problem solved
The main must not contain any variables that are called by other modules. If you move the variables to other modules, the problem is solved. Example: Variable X is defined in the Main. A module should read this value. Then it works in the editor environment, but if you want to create a library you get the mentioned error message.
 
Upvote 0
Top