09-26 01:20:33.336: E/AndroidRuntime(1854): FATAL EXCEPTION: main 09-26 01:20:33.336: E/AndroidRuntime(1854): Process: com.example.nongmin, PID: 1854 09-26 01:20:33.336: E/AndroidRuntime(1854): java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView 09-26 01:20:33.336: E/AndroidRuntime(1854): at com.jarvis.mytaobao.user.User_F.initView(User_F.java:77) 09-26 01:20:33.336: E/AndroidRuntime(1854): at com.jarvis.mytaobao.user.User_F.onCreateView(User_F.java:67) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1789) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:955) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1138) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:740) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1501) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:458) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.os.Handler.handleCallback(Handler.java:733) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.os.Handler.dispatchMessage(Handler.java:95) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.os.Looper.loop(Looper.java:136) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.app.ActivityThread.main(ActivityThread.java:5017) 09-26 01:20:33.336: E/AndroidRuntime(1854): at java.lang.reflect.Method.invokeNative(Native Method) 09-26 01:20:33.336: E/AndroidRuntime(1854): at java.lang.reflect.Method.invoke(Method.java:515) 09-26 01:20:33.336: E/AndroidRuntime(1854): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 09-26 01:20:33.336: E/AndroidRuntime(1854): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
09-26 01:20:33.336: E/AndroidRuntime(1854): at dalvik.system.NativeStart.main(Native Method)
错误原因:布局中我把textview换成了imageview 但是activity中没有换过来 所以报了这个错误
09-29 10:14:40.435: E/AndroidRuntime(17739): FATAL EXCEPTION: main 09-29 10:14:40.435: E/AndroidRuntime(17739): Process: com.example.nongmin, PID: 17739 09-29 10:14:40.435: E/AndroidRuntime(17739): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.view.ViewRootImpl.setView(ViewRootImpl.java:754) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:267) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:70) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.app.Dialog.show(Dialog.java:347) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.app.AlertDialog.show(AlertDialog.java:1367) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.widget.Spinner$DialogPopup.show(Spinner.java:1007) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.widget.Spinner.performClick(Spinner.java:677) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.view.View$PerformClick.run(View.java:19385) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.os.Handler.handleCallback(Handler.java:808) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.os.Handler.dispatchMessage(Handler.java:103) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.os.Looper.loop(Looper.java:193) 09-29 10:14:40.435: E/AndroidRuntime(17739): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-29 10:14:40.435: E/AndroidRuntime(17739): at java.lang.reflect.Method.invokeNative(Native Method) 09-29 10:14:40.435: E/AndroidRuntime(17739): at java.lang.reflect.Method.invoke(Method.java:515) 09-29 10:14:40.435: E/AndroidRuntime(17739): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 09-29 10:14:40.435: E/AndroidRuntime(17739): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 09-29 10:14:40.435: E/AndroidRuntime(17739): at dalvik.system.NativeStart.main(Native Method)
错误原因:在写viewpager的时候,我主类里面是用数组来存放 view的,每个view都是继承LinearLayout 传递参数是上下文 context导致Spinner有个属性是没法使用的
android:spinnerMode="dialog" 这个属性只有只能用 activity.this来启动,用context好像是不可以的,
在布局文件中把这个属性去掉就可以了,不过去掉之后弹出来的效果就不是很友好的了
09-28 22:51:08.564: W/System.err(15219): org.json.JSONException: Value <div of type java.lang.String cannot be converted to JSONObject 09-28 22:51:08.564: W/System.err(15219): at org.json.JSON.typeMismatch(JSON.java:111) 09-28 22:51:08.564: W/System.err(15219): at org.json.JSONObject.<init>(JSONObject.java:159) 09-28 22:51:08.564: W/System.err(15219): at org.json.JSONObject.<init>(JSONObject.java:172) 09-28 22:51:08.564: W/System.err(15219): at com.jarvis.user.LoginActivity$1.handleMessage(LoginActivity.java:131) 09-28 22:51:08.564: W/System.err(15219): at android.os.Handler.dispatchMessage(Handler.java:110) 09-28 22:51:08.564: W/System.err(15219): at android.os.Looper.loop(Looper.java:193) 09-28 22:51:08.564: W/System.err(15219): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-28 22:51:08.564: W/System.err(15219): at java.lang.reflect.Method.invokeNative(Native Method) 09-28 22:51:08.564: W/System.err(15219): at java.lang.reflect.Method.invoke(Method.java:515) 09-28 22:51:08.564: W/System.err(15219): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 09-28 22:51:08.564: W/System.err(15219): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 09-28 22:51:08.565: W/System.err(15219): at dalvik.system.NativeStart.main(Native Method)
错误原因:访问网络失败,导致json解析失败,主要的原因是 服务器那边传递回来的结构跟自己这边解析不一致造成的
09-28 15:18:38.879: E/dalvikvm-heap(11648): Out of memory on a 2304016-byte allocation. 09-28 15:18:38.889: E/AndroidRuntime(11648): FATAL EXCEPTION: main 09-28 15:18:38.889: E/AndroidRuntime(11648): Process: com.example.nongmin, PID: 11648 09-28 15:18:38.889: E/AndroidRuntime(11648): java.lang.OutOfMemoryError 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:642) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:618) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:398) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:424) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.javis.mytools.DiskLruCache.get(DiskLruCache.java:193) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.javis.mytools.ImageCache.getBitmapFromDiskCache(ImageCache.java:253) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.javis.mytools.ImageCache.loadBitmap(ImageCache.java:187) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.javis.mytools.ImageCache.<init>(ImageCache.java:99) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.jarvis.infoshow.ShowCompanyAdapter.getView(ShowCompanyAdapter.java:143) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.AbsListView.obtainView(AbsListView.java:3180) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.ListView.makeAndAddView(ListView.java:2153) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.ListView.fillDown(ListView.java:951) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.ListView.fillFromTop(ListView.java:1036) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.ListView.layoutChildren(ListView.java:1956) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.AbsListView.onLayout(AbsListView.java:2973) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.jarvis.MyView.PullToRefreshLayout.onLayout(PullToRefreshLayout.java:509) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1883) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1737) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.onLayout(LinearLayout.java:1646) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1883) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1737) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.onLayout(LinearLayout.java:1646) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:500) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.FrameLayout.onLayout(FrameLayout.java:435) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1883) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1737) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.LinearLayout.onLayout(LinearLayout.java:1646) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:500) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.widget.FrameLayout.onLayout(FrameLayout.java:435) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.View.layout(View.java:15725) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2859) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2518) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1321) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6935) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:788) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.Choreographer.doCallbacks(Choreographer.java:591) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.Choreographer.doFrame(Choreographer.java:560) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:774) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.os.Handler.handleCallback(Handler.java:808) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.os.Handler.dispatchMessage(Handler.java:103) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.os.Looper.loop(Looper.java:193) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-28 15:18:38.889: E/AndroidRuntime(11648): at java.lang.reflect.Method.invokeNative(Native Method) 09-28 15:18:38.889: E/AndroidRuntime(11648): at java.lang.reflect.Method.invoke(Method.java:515) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 09-28 15:18:38.889: E/AndroidRuntime(11648): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 09-28 15:18:38.889: E/AndroidRuntime(11648): at dalvik.system.NativeStart.main(Native Method)
错误原因:我在adapter自定义的时候,getView函数里面,用了数组来获取服务器传递回来的图片数量,然后用异步进程加载数据,可是如果后台传回的图片数量超过你规定的时候就会报这个错误,数组下标溢出,
09-28 14:16:40.091: E/AndroidRuntime(11555): FATAL EXCEPTION: main 09-28 14:16:40.091: E/AndroidRuntime(11555): Process: com.example.nongmin, PID: 11555 09-28 14:16:40.091: E/AndroidRuntime(11555): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.nongmin/com.jarvis.mypub.PublishActivity}; have you declared this activity in your AndroidManifest.xml? 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.app.Instrumentation$Injector.handleActivityNotFoundInGuestMode(Instrumentation.java:1930) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1694) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1471) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.app.Activity.startActivityForResult(Activity.java:3553) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.app.Activity.startActivityForResult(Activity.java:3505) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:829) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.support.v4.app.Fragment.startActivity(Fragment.java:897) 09-28 14:16:40.091: E/AndroidRuntime(11555): at com.jarvis.mypub.Mypub$2.onClick(Mypub.java:49) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.view.View.performClick(View.java:4632) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.view.View$PerformClick.run(View.java:19385) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.os.Handler.handleCallback(Handler.java:808) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.os.Handler.dispatchMessage(Handler.java:103) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.os.Looper.loop(Looper.java:193) 09-28 14:16:40.091: E/AndroidRuntime(11555): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-28 14:16:40.091: E/AndroidRuntime(11555): at java.lang.reflect.Method.invokeNative(Native Method) 09-28 14:16:40.091: E/AndroidRuntime(11555): at java.lang.reflect.Method.invoke(Method.java:515) 09-28 14:16:40.091: E/AndroidRuntime(11555): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 09-28 14:16:40.091: E/AndroidRuntime(11555): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 09-28 14:16:40.091: E/AndroidRuntime(11555): at dalvik.system.NativeStart.main(Native Method)
错误原因:清单文件中错误
09-28 09:43:20.869: E/AndroidRuntime(10286): FATAL EXCEPTION: main 09-28 09:43:20.869: E/AndroidRuntime(10286): Process: com.example.nongmin, PID: 10286 09-28 09:43:20.869: E/AndroidRuntime(10286): java.lang.NumberFormatException: Invalid long: "2015-09-27 22:21:56000" 09-28 09:43:20.869: E/AndroidRuntime(10286): at java.lang.Long.invalidLong(Long.java:124) 09-28 09:43:20.869: E/AndroidRuntime(10286): at java.lang.Long.parse(Long.java:361) 09-28 09:43:20.869: E/AndroidRuntime(10286): at java.lang.Long.parseLong(Long.java:352) 09-28 09:43:20.869: E/AndroidRuntime(10286): at java.lang.Long.parseLong(Long.java:318) 09-28 09:43:20.869: E/AndroidRuntime(10286): at com.javis.mytools.TimeHandler.handle(TimeHandler.java:18) 09-28 09:43:20.869: E/AndroidRuntime(10286): at com.jarvis.infoshow.ShowWorkerAdapter.getView(ShowWorkerAdapter.java:126) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.AbsListView.obtainView(AbsListView.java:3180) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.ListView.makeAndAddView(ListView.java:2153) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.ListView.fillDown(ListView.java:951) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.ListView.fillFromTop(ListView.java:1036) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.ListView.layoutChildren(ListView.java:1956) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.AbsListView.onLayout(AbsListView.java:2973) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at com.jarvis.MyView.PullToRefreshLayout.onLayout(PullToRefreshLayout.java:509) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1883) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1737) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.onLayout(LinearLayout.java:1646) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1883) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1737) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.onLayout(LinearLayout.java:1646) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:500) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.FrameLayout.onLayout(FrameLayout.java:435) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1883) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1737) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.LinearLayout.onLayout(LinearLayout.java:1646) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:500) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.widget.FrameLayout.onLayout(FrameLayout.java:435) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.View.layout(View.java:15725) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewGroup.layout(ViewGroup.java:4925) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2859) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2518) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1321) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6935) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:788) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.Choreographer.doCallbacks(Choreographer.java:591) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.Choreographer.doFrame(Choreographer.java:560) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:774) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.os.Handler.handleCallback(Handler.java:808) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.os.Handler.dispatchMessage(Handler.java:103) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.os.Looper.loop(Looper.java:193) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-28 09:43:20.869: E/AndroidRuntime(10286): at java.lang.reflect.Method.invokeNative(Native Method) 09-28 09:43:20.869: E/AndroidRuntime(10286): at java.lang.reflect.Method.invoke(Method.java:515) 09-28 09:43:20.869: E/AndroidRuntime(10286): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 09-28 09:43:20.869: E/AndroidRuntime(10286): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 09-28 09:43:20.869: E/AndroidRuntime(10286): at dalvik.system.NativeStart.main(Native Method)
错误原因:服务器传递回来的不是时间戳,导致解析失败
09-26 10:58:52.128: E/AndroidRuntime(4233): FATAL EXCEPTION: main 09-26 10:58:52.128: E/AndroidRuntime(4233): Process: com.example.nongmin, PID: 4233 09-26 10:58:52.128: E/AndroidRuntime(4233): java.lang.RuntimeException: Unable to instantiate application com.jarvis.app.MyApplication: java.lang.IllegalStateException: Unable to get package info for com.example.nongmin; is package not installed? 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.LoadedApk.makeApplication(LoadedApk.java:516) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4317) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.ActivityThread.access$1500(ActivityThread.java:135) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.os.Handler.dispatchMessage(Handler.java:102) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.os.Looper.loop(Looper.java:136) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.ActivityThread.main(ActivityThread.java:5017) 09-26 10:58:52.128: E/AndroidRuntime(4233): at java.lang.reflect.Method.invokeNative(Native Method) 09-26 10:58:52.128: E/AndroidRuntime(4233): at java.lang.reflect.Method.invoke(Method.java:515) 09-26 10:58:52.128: E/AndroidRuntime(4233): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 09-26 10:58:52.128: E/AndroidRuntime(4233): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 09-26 10:58:52.128: E/AndroidRuntime(4233): at dalvik.system.NativeStart.main(Native Method) 09-26 10:58:52.128: E/AndroidRuntime(4233): Caused by: java.lang.IllegalStateException: Unable to get package info for com.example.nongmin; is package not installed? 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:376) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.LoadedApk.getClassLoader(LoadedApk.java:329) 09-26 10:58:52.128: E/AndroidRuntime(4233): at android.app.LoadedApk.makeApplication(LoadedApk.java:508) 09-26 10:58:52.128: E/AndroidRuntime(4233): ... 11 more
错误原因:application引用错误,主要是我重写了,没有把原来的地方改掉