B4J Question Build Configuration Change With CustomControls

Mashiane

Expert
Licensed User
Longtime User
Hi there

1. I created a custom control project, in Build configuration the name was b4j.example.
2. I compiled this, used the custom control in other page etc, then changed the name from b4j.example to something else. This resulted in the break of the code, one of the modules not being found.

B4X:
java.lang.RuntimeException: java.lang.ClassNotFoundException: b4j.example.fontgrid

3. I renamed it back to b4j.example and it worked again as removing the control from the designer and inserting it did not help.

its now working but showing this.

B4X:
Class not found: b4j.MashPropertyBag.editabletv, trying: b4j.example.editabletv

editabletv is part of the b4j.MashPropertyBag library though.

What could be the cause of this and what solution can I use?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Objects added with the designer does have a ref to the packagename.

If you change packagename then you need to recreate the layouts new. Remove the customview from the layout and add it again. Save the layout.
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Objects added with the designer does have a ref to the packagename.

If you change packagename then you need to recreate the layouts new. Remove the customview from the layout and add it again. Save the layout.
Thing is I have removed it and added it again, it doesnt do it. Perhaps I am missing something
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Do you by any chance still reference the code module used in creating the custom control instead of the generated lib?
 
Upvote 0
Top