eclipse 导入jar包出现Could not find class

我将我的项目打包成jar,导入后出现找不到class。求教大神们。
我的打包方法:
项目右键 -> export jar,然后操作如下图图片说明然后一路往下。添加包是直接将jar拷贝到libs,build path添加。但是现在点击调用jar包里面的文件时出现如下错误

 09-17 16:35:19.311: E/hahahahha(4247): 21fe82cdac8539317a53b87e1ba7873e
09-17 16:35:20.121: E/dalvikvm(4247): Could not find class 'org.videolan.vlc.audio.AudioServiceController$1', referenced from method org.videolan.vlc.audio.AudioServiceController.<init>
09-17 16:35:20.121: E/dalvikvm(4247): Could not find class 'org.videolan.vlc.interfaces.IAudioService', referenced from method org.videolan.vlc.audio.AudioServiceController.remoteProcedureCall
09-17 16:35:20.121: E/dalvikvm(4247): Could not find class 'org.videolan.vlc.audio.AudioService', referenced from method org.videolan.vlc.audio.AudioServiceController.bindAudioService
09-17 16:35:20.141: E/MyUncaughtHandler(4247): Could not execute method of the activity
09-17 16:35:20.141: E/MyUncaughtHandler(4247): java.lang.IllegalStateException: Could not execute method of the activity
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.view.View$1.onClick(View.java:3725)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.view.View.performClick(View.java:4262)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.view.View$PerformClick.run(View.java:17351)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.os.Handler.handleCallback(Handler.java:615)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.os.Handler.dispatchMessage(Handler.java:92)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.os.Looper.loop(Looper.java:137)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.app.ActivityThread.main(ActivityThread.java:4935)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at java.lang.reflect.Method.invokeNative(Native Method)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at java.lang.reflect.Method.invoke(Method.java:511)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at dalvik.system.NativeStart.main(Native Method)
09-17 16:35:20.141: E/MyUncaughtHandler(4247): Caused by: java.lang.reflect.InvocationTargetException
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at java.lang.reflect.Method.invokeNative(Native Method)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at java.lang.reflect.Method.invoke(Method.java:511)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at android.view.View$1.onClick(View.java:3720)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  ... 11 more
09-17 16:35:20.141: E/MyUncaughtHandler(4247): Caused by: java.lang.NoClassDefFoundError: org.videolan.vlc.audio.AudioServiceController$1
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at org.videolan.vlc.audio.AudioServiceController.<init>(AudioServiceController.java:52)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at org.videolan.vlc.audio.AudioServiceController.getInstance(AudioServiceController.java:70)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  at ixz.fish_help_app.GrpDevListActivity.sys_vlc(GrpDevListActivity.java:1893)
09-17 16:35:20.141: E/MyUncaughtHandler(4247):  ... 14 more

调用的方法是

``public void sys_vlc(View view)
{
AudioServiceController c = AudioServiceController.getInstance();

c.load(VLCURL, false);

}
求教这是怎么回事呢?

查看全部
llx2007
凌云志轩
2015/09/17 08:43
  • jar
  • eclipse
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

5个回复