0

I am trying to make use of the SlidingMenu Library for Android but I get these errors:

Could not find com.slidingmenu.lib.SlidingMenuActivity.apk

and another error:

E/AndroidRuntime(24767): java.lang.NoClassDefFoundError: com.slidingmenu.lib.SlidingMenu

I have properly added the com.slidingmenu.lib.SlidingMenuActivity to the Java Build section.

Charles
  • 50,943
  • 13
  • 104
  • 142
fred
  • 1
  • 1
  • 1
  • 1
    There are many solutions to this error defined here: http://stackoverflow.com/questions/6337673/could-not-find-library-apk – Eric Leschinski Dec 26 '12 at 17:42
  • I have updated the Project properties to use the Jar but now i have this issue: E/AndroidRuntime(24767): java.lang.NoClassDefFoundError: com.slidingmenu.lib.SlidingMenu – fred Dec 26 '12 at 17:49
  • 1
    make sure there is a /libs/ directory in your project, and copy and paste the library jar into it. – edthethird Dec 26 '12 at 17:54
  • 1
    Do note that tags stand alone, and combining them does not create a unique term. For example, combining `sliding`, `menu` and `library` does not mean you are talking about a sliding menu library. – Charles Dec 26 '12 at 18:00
  • i followed edthethird and now the issue is: java.lang.NoClassDefFoundError: com.slidingmenu.lib.R$styleable – fred Dec 26 '12 at 21:44

2 Answers2

3

What I found is that some time between June 2012 and now (August 2013) the package name changed. Performing a global search-and-replace of com.slidingmenu.lib to com.jeremyfeinstein.slidingmenu.lib fixed the problem.

Peter Gluck
  • 8,168
  • 1
  • 38
  • 37
0

Troubleshoot Android 'Could not find somelibrary.apk'

Could not find Library.apk!

Troubleshoot Android 'java.lang.NoClassDefFoundError com.somelibrary.mylibrary'

Troubleshoot NoClassDefFoundError in Java

Community
  • 1
  • 1
Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335