Results 1 to 1 of 1
  1. #1
    Zarah is offline Senior Member
    Join Date
    Mar 2014
    Posts
    286
    Rep Power
    7

    Default java.lang.ClassNotFoundException: Didn't find class on path: DexPathList

    I want to use this library to create this SearchView. The project and the tutorial given on the Github page was for Android Studio, but I use Eclipse. So what I did was that I created a library project in Eclipse and copied all the code from the custom-searchable module here.

    Then I created a project named custom-searchable-demo and copied all the code from the module named demo there. But I have been getting all the weird errors for a day. Right now I am getting:

    Java Code:
    08-16 09:56:13.365: E/AndroidRuntime(2071): java.lang.RuntimeException: Unable to get provider br.com.edsilfer.custom_searchable_demo.content_provider.CustomSuggestionsProvider: java.lang.ClassNotFoundException: Didn't find class "br.com.edsilfer.custom_searchable_demo.content_provider.CustomSuggestionsProvider" on path: DexPathList[[zip file "/data/app/br.com.edsilfer.custom_searchable_demo-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
    I have attached both the Eclipse projects i.e. the library project and the demo project.

    Note: I have not posted the code, because the Eclipse projects are attached, and the AS code is here but if you think I should post it, lemme know, I will post it.

    Secondly, if you try to download the project and run it, please let me know if it works for you or not. This will atleast make sure that if there is something wrong with the project or I am doing something wrong. Thank you.
    Attached Files Attached Files
    Last edited by Zarah; 08-16-2015 at 08:26 PM.

Similar Threads

  1. ClassLoader - can't find class java.lang.Object
    By brenda in forum New To Java
    Replies: 0
    Last Post: 03-30-2011, 04:57 AM
  2. Replies: 8
    Last Post: 11-04-2010, 01:46 PM
  3. Replies: 8
    Last Post: 10-17-2010, 10:24 AM
  4. Cannot find class in same path.
    By ribbs2521 in forum New To Java
    Replies: 4
    Last Post: 05-07-2009, 05:25 PM
  5. java.lang.ClassNotFoundException
    By ravian in forum New To Java
    Replies: 1
    Last Post: 01-07-2008, 10:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •