Android Question Error when compiling project

imgsimonebiliato

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

Code:
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
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Here it is.
But you can't compile because you need another one
 

Attachments

  • iControllerB4A.zip
    85.3 KB · Views: 288
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
I see that you are using B4A v3.82. This is quite an old version. Where is the compiled library? Have you added references to all required libraries in your project?
The compiled library is into the same folder in "Additional Folder". Yes, I added all the required libraries
 
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
It does work here when I compile this project:
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Cpk.Initialize
End Sub

I've removed a few dependencies that are not available here.
What project do you mean? I've never add Cpk until now and all other project have always worked
 
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
This is a test project.
I can't compile it. Remember to add the iController library
 

Attachments

  • and_TestProject.zip
    56.6 KB · Views: 276
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
There is no ilib3 class inside iController.

I recommend you to use the classes instead of the compiled library if you are not able to solve this issue.
I have about 15 code module inside the library. I can't use all them as classes in each project. I need the library
 
Upvote 0
Top