Android Question Error: Class Not Found After Changing Package Name

Shadow&Max

Active Member
Licensed User
Longtime User
I added two of Erel's modules... KeyValueStore and CustomListView... CustomListView is in use, KeyValueStore isn't at the moment (it's early lol).

Everything was working fine and no errors in the log as it ran.... Then I changed the Package name, and now I get the error:

Class not found: b4a.example.customlistview, trying: com.twodogapps.gaa.customlistview
Class not found: b4a.example.customlistview, trying: com.twodogapps.gaa.customlistview
(It appears twice because I'm creating two in one activity.)

It's correct in that that's what I changed the Package Name to (from b4a.example). The app's running and compiling fine, but I want to get rid of the error on the console.

I tried syncing the file... that didn't work... I tried removing the CustomListView.bas file and reloading it... but the error persists.

How can I get rid of the error???
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
The problems is in the designer.
Go into the screen that have your CustomListView and change the name of 'Custom Type' in the properties back to 'CustomListView' for some reason it ends up having the old package name there.

See this
 
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
Thanks Jake... Bingo. Funny, once I changed it to CustomListView (was b4android.CustomListView), I could no longer access the type in the designer from 3.2 B3 and it was disabled! Anyway, fixed... thanks so much...!
 
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
Hi Erel...

Maybe I'm misunderstanding what's happening. I can change the Custom Type to CustomListView, but under the main group, type is disabled.

I added another CustomListView to another screen, and when that was changed to CustomListView, type was disabled, so I guess that must be correct.
 
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
OK, thanks...
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hello
This problem is still! I changed my name and were lost all references. now I have to do manual update ..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…