Android Question Compiled library don't found

imgsimonebiliato

Well-Known Member
Licensed User
Hello,
I used "Compile to library" to create a personal library that contains 5 different code modules and a service module.

The compilation it's ok, but if I use this library named "bsUtils" (package name: simone.b.bsUtils), I've got this error:

B4X:
Parsing code.                           0.02
Running custom action.                  0.03
Compiling code.                         0.05
Compiling layouts code.                 0.05
Generating R file.                      0.06
Compiling generated Java code.          Error
javac 1.7.0_75
src\simone\b\fortitudovedelago\bsfortitudovedelago.java:14: error: package simone.b.bsUtils does not exist
public simone.b.bsUtils.bsconnection _bsconnection = null;
                       ^
1 error
Please, help
 

klaus

Expert
Licensed User
In the Main module you should set following properties in #Region Project Attributes :
#LibraryName: MyLibrary
#LibraryAuthor: MyName
#LibraryVersion: 1.0

The library name will be MyLibrary and saved in the AdditionalLibraries folder.
 

imgsimonebiliato

Well-Known Member
Licensed User
Hello,
I already set this before compile:

B4X:
#Region  Project Attributes
    #LibraryVersion: 1.00
    #LibraryAuthor: Simone Biliato
    #LibraryName: bsUtils
#End Region
 

klaus

Expert
Licensed User
You need to give more information.
Whithout knowing more in detail what you are doing it's difficult to give a concrete advice.
When and in what line do you get the error ?
What are the names of the modules in your library ?
How do you initialize them ?
You might have a look at chapter 11.7 Compile a class into a Library in the B4A User's Guide.
 

imgsimonebiliato

Well-Known Member
Licensed User
Here it is the project structure



I get this error, in another app, that use the bsUtils library.
I don't need to initialize the libraries
 

klaus

Expert
Licensed User
I get this error, in another app, that use the bsUtils library.
Again the same questions.
- When and in what line do you get the error ?
- What are the names of the modules in your library ?
- How do you initialize them ?
 

imgsimonebiliato

Well-Known Member
Licensed User
- I get the error when I run the app. It isn't specified the line
- The name of the modules are: bsConnection, bPushNotify, PushService, bsDimensions, bsShortcut
- I don't initialize the library because I don't need it
 

klaus

Expert
Licensed User
In the first post you say:
The compilation it's ok, but if I use this library named "bsUtils" (package name: simone.b.bsUtils), I've got this error:
Now you say:
- I don't initialize the library because I don't need it
Sorry, but I don't understand !!!

As I don't know nor understand what you want to do and what you are doing I can't help.
 

imgsimonebiliato

Well-Known Member
Licensed User
I mean that, I don't need to initialize the library
 

klaus

Expert
Licensed User
You must post a small project showing the problem.
Without seeing in detail what you have done it's almost impossible to help.
I have compiled several classes and code modules to libraries without any trouble.
 

imgsimonebiliato

Well-Known Member
Licensed User
I found the problem...
B4A compiled the library to a different "Additional library" folder
 
Top