当前位置: 代码迷 >> Android >> 刚做Android,在网下上了一个代码,自己调试的时候出了有关问题,请大家帮小弟我看看
  详细解决方案

刚做Android,在网下上了一个代码,自己调试的时候出了有关问题,请大家帮小弟我看看

热度:37   发布时间:2016-05-01 18:03:14.0
刚做Android,在网上下了一个代码,自己调试的时候出了问题,请大家帮我看看
07-13 02:43:59.232: W/dalvikvm(345): threadid=1: thread exiting with uncaught exception (group=0x40015560)
07-13 02:43:59.242: E/AndroidRuntime(345): FATAL EXCEPTION: main
07-13 02:43:59.242: E/AndroidRuntime(345): java.lang.NoClassDefFoundError: org.jsoup.Jsoup
07-13 02:43:59.242: E/AndroidRuntime(345): at com.huahua.Mp3Player.xml.XMLHelper.parseCategoryHtml(XMLHelper.java:97)
07-13 02:43:59.242: E/AndroidRuntime(345): at com.huahua.Mp3Player.Activity.RemoteCategoryListActivity.UpdateCategoryList(RemoteCategoryListActivity.java:87)
07-13 02:43:59.242: E/AndroidRuntime(345): at com.huahua.Mp3Player.Activity.RemoteCategoryListActivity.onCreate(RemoteCategoryListActivity.java:61)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread.startActivityNow(ActivityThread.java:1487)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.widget.TabHost.setCurrentTab(TabHost.java:326)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.widget.TabHost.addTab(TabHost.java:216)
07-13 02:43:59.242: E/AndroidRuntime(345): at com.huahua.Mp3Player.Activity.MainActivity.onCreate(MainActivity.java:26)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.os.Looper.loop(Looper.java:123)
07-13 02:43:59.242: E/AndroidRuntime(345): at android.app.ActivityThread.main(ActivityThread.java:3683)
07-13 02:43:59.242: E/AndroidRuntime(345): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 02:43:59.242: E/AndroidRuntime(345): at java.lang.reflect.Method.invoke(Method.java:507)
07-13 02:43:59.242: E/AndroidRuntime(345): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
07-13 02:43:59.242: E/AndroidRuntime(345): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
07-13 02:43:59.242: E/AndroidRuntime(345): at dalvik.system.NativeStart.main(Native Method)


------解决方案--------------------
http://download.csdn.net/detail/xiaoyong8823/4114401
这有个下载地址,试试看。
------解决方案--------------------
看是不是少Jsoup.jar
------解决方案--------------------
jar包要这样加
新建一个libs->把jar包放进来->use as source folder->jar包右键->add to buildpath
------解决方案--------------------
你可以双击那个你自己的代码错误的地方进去看
------解决方案--------------------
不行 按我的来
  相关解决方案