Android Question Class not found: b4a.example.customlistview

Discussion in 'Android Questions' started by Scotter, Dec 21, 2018.

  1. Scotter

    Scotter Active Member Licensed User

    Hi -

    I've been using xCustomListView v1.20.
    Works great!
    No errors but the following warning appears in my log:

    Code:
    Class not found: b4a.example.customlistview, trying: b4a.p2e.customlistview
    Ideas?

    Thanks!
     
  2. Mahares

    Mahares Well Known Member Licensed User

    That means that you have a project with package name: b4a.p2e Then you have a project with
    with package name: b4a.example. You copied the layout that has the customlistview from b4a.p2e to the b4a.example and it did not find it. It does not hurt. But if you want the message to disappear, delete the customlistview from b4a.example layout, then recreate it and save the layout.
     
    Scotter likes this.
  3. Scotter

    Scotter Active Member Licensed User

    Thanks! Searched everywhere and couldn't find any projects or layouts called "b4a.example". Any other ideas?
     
  4. mcqueccu

    mcqueccu Active Member Licensed User

    Clean your project, Remove the already existing class and download the latest one( v1.65) from here
    Then goto project->Add existing module-> then choose the new customlistview you downloaded
     
    Scotter likes this.
  5. Scotter

    Scotter Active Member Licensed User

    Thank you! I appreciate you being explicit, too, since I'm still learning.
     
  6. Mahares

    Mahares Well Known Member Licensed User

    I did not say layout or project name called: b4a.example. I said: package name called:b4a.example . Although upgrading the class from 1.20 to 1.65 is a good idea, I do not think upgrading will fix your problem. I had a similar situation like yours and to solve it, I followed the procedure I gave you in post#2.
    Please post how you eventually solve your problem, no matter how you do it.
     
    Scotter likes this.
  7. klaus

    klaus Expert Licensed User

    In the last B4A versions, xCustomListView is a included as a library.
    So, no need to add the class module.
    If you switch from class to library you might remove the 'old' view in the Designer and replace it by a new one.
     
  8. Scotter

    Scotter Active Member Licensed User

    Is it part of the XUI library? Or.. ?
     
  9. mcqueccu

    mcqueccu Active Member Licensed User

    With the Library you don't need to add the XUI unless something else requires it in your project
     
  10. klaus

    klaus Expert Licensed User

    No.

    It is a sepearate internal library since B4A Version 8.00.

    upload_2018-12-22_8-57-8.png
     
    Scotter likes this.
  11. Scotter

    Scotter Active Member Licensed User

    Didn't find a solution. Sorry. Will just ignore the log msg for now.
     
  12. Mahares

    Mahares Well Known Member Licensed User

    The easiest way to handle is:
    1. Open the layout that has the customlistview in it.
    2. Delete the customlistview and create another one with the same design as the one you deleted.
    3. Save the layout. That is all.
    There is no need for you to upgrade to a newer library or class at this moment because it has nothing to do with the class version and you said that the class you have is working great. Maybe later you would want to.
     
    Scotter and Johan Schoeman like this.
  13. Erel

    Erel Administrator Staff Member Licensed User

    Best option is to switch to xCustomListView library. However there is no harm with ignoring this message.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice