Android Question Library package name

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
when I create a new project and I want to compile it to a library, do I have to rename the package? Or I can leave "b4a.example"?

Thanks
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
You can leave it with the default package name. Make sure to use unique names for your classes.
Even if I have more than one library, with name "b4a.example"?
 
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
So please, can you explain me this?

B4X:
Parsing code.                           0.03
Compiling code.                         0.08
Compiling layouts code.                 0.00
Generating R file.                      0.09
Compiling generated Java code.          Error
javac 1.8.0_60
src\it\android\imgspa\and_StampeIMG\cformdb.java:28: error: cannot find symbol
public b4a.example.cpk _cpk = null;
                  ^
  symbol:   class cpk
  location: package b4a.example
1 error

"Cpk" is a code module inside a library named "iController" with package name "b4a.example"
If I delete the "Cpk" module, I have the same error but with another code module name
 
Last edited:
Upvote 0
Top