BUGS
10-13 16:09:38.709: E/AndroidRuntime(933): FATAL EXCEPTION: main
10-13 16:09:38.709: E/AndroidRuntime(933): Process: com.jykj.kchartview, PID: 933
10-13 16:09:38.709: E/AndroidRuntime(933): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.jykj.kchartview/com.jykj.kchartview.KChartView}: java.lang.InstantiationException: can't instantiate class com.jykj.kchartview.KChartView; no empty constructor
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2116)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2239)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.ActivityThread.access$800(ActivityThread.java:141)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.os.Handler.dispatchMessage(Handler.java:102)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.os.Looper.loop(Looper.java:136)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.ActivityThread.main(ActivityThread.java:5047)
10-13 16:09:38.709: E/AndroidRuntime(933): at java.lang.reflect.Method.invokeNative(Native Method)
10-13 16:09:38.709: E/AndroidRuntime(933): at java.lang.reflect.Method.invoke(Method.java:515)
10-13 16:09:38.709: E/AndroidRuntime(933): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-13 16:09:38.709: E/AndroidRuntime(933): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
10-13 16:09:38.709: E/AndroidRuntime(933): at dalvik.system.NativeStart.main(Native Method)
10-13 16:09:38.709: E/AndroidRuntime(933): Caused by: java.lang.InstantiationException: can't instantiate class com.jykj.kchartview.KChartView; no empty constructor
10-13 16:09:38.709: E/AndroidRuntime(933): at java.lang.Class.newInstanceImpl(Native Method)
10-13 16:09:38.709: E/AndroidRuntime(933): at java.lang.Class.newInstance(Class.java:1208)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
10-13 16:09:38.709: E/AndroidRuntime(933): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2107)
10-13 16:09:38.709: E/AndroidRuntime(933): ... 11 more
清单文件中的MainActivity的name写错了
=================================================================================
10-16 14:30:56.183: E/AndroidRuntime(10831): FATAL EXCEPTION: main
10-16 14:30:56.183: E/AndroidRuntime(10831): Process: com.jykj.scalegesturedetectordemo, PID: 10831
10-16 14:30:56.183: E/AndroidRuntime(10831): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jykj.scalegesturedetectordemo/com.jykj.scalegesturedetectordemo.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class com.jykj.scalegesturedetectordemo.TouchView
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.ActivityThread.access$800(ActivityThread.java:141)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.os.Handler.dispatchMessage(Handler.java:102)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.os.Looper.loop(Looper.java:136)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.ActivityThread.main(ActivityThread.java:5072)
10-16 14:30:56.183: E/AndroidRuntime(10831): at java.lang.reflect.Method.invokeNative(Native Method)
10-16 14:30:56.183: E/AndroidRuntime(10831): at java.lang.reflect.Method.invoke(Method.java:515)
10-16 14:30:56.183: E/AndroidRuntime(10831): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-16 14:30:56.183: E/AndroidRuntime(10831): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
10-16 14:30:56.183: E/AndroidRuntime(10831): at dalvik.system.NativeStart.main(Native Method)
10-16 14:30:56.183: E/AndroidRuntime(10831): Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class com.jykj.scalegesturedetectordemo.TouchView
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
10-16 14:30:56.183: E/AndroidRuntime(10831): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.Activity.setContentView(Activity.java:1947)
10-16 14:30:56.183: E/AndroidRuntime(10831): at com.jykj.scalegesturedetectordemo.MainActivity.onCreate(MainActivity.java:13)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.Activity.performCreate(Activity.java:5249)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
10-16 14:30:56.183: E/AndroidRuntime(10831): ... 11 more
10-16 14:30:56.183: E/AndroidRuntime(10831): Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
10-16 14:30:56.183: E/AndroidRuntime(10831): at java.lang.Class.getConstructorOrMethod(Class.java:472)
10-16 14:30:56.183: E/AndroidRuntime(10831): at java.lang.Class.getConstructor(Class.java:446)
10-16 14:30:56.183: E/AndroidRuntime(10831): at android.view.LayoutInflater.createView(LayoutInflater.java:571)
10-16 14:30:56.183: E/AndroidRuntime(10831): ... 22 more
custom view 的构造方法只写了一个单参数的,要写全三个
=================================================================================
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6090)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:912)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.invalidateChild(ViewGroup.java:4320)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.view.View.invalidate(View.java:10950)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.view.View.invalidate(View.java:10905)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.widget.TextView.checkForRelayout(TextView.java:6594)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.widget.TextView.setText(TextView.java:3820)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.widget.TextView.setText(TextView.java:3678)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at android.widget.TextView.setText(TextView.java:3653)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.page.BuyPage.setTextViewFS(BuyPage.java:392)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.page.BuyPage.access$1300(BuyPage.java:103)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.page.BuyPage$6.onTouchCross(BuyPage.java:365)
10-26 09:54:16.252 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave$MyThread.drawCross(StockDrawWave.java:536)
10-26 09:54:16.262 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave$MyThread.drawTimeChar(StockDrawWave.java:389)
10-26 09:54:16.262 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave$MyThread.access$000(StockDrawWave.java:306)
10-26 09:54:16.262 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave$MyThread$MyHandler.handleMessage(StockDrawWave.java:356)
10-26 09:54:16.262 19496-7395/com.wexmarket.jyh W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
10-26 09:54:16.262 19496-7395/com.wexmarket.jyh W/System.err: at android.os.Looper.loop(Looper.java:136)
10-26 09:54:16.262 19496-7395/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave$MyThread.run(StockDrawWave.java:366)
在子线程设置了Looper之后,就不能直接更新主线程的UI了
=================================================================================
0-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: java.lang.NullPointerException
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave.onTouchEvent(StockDrawWave.java:276)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.View.dispatchTouchEvent(View.java:7718)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.ui.StockDrawWave.dispatchTouchEvent(StockDrawWave.java:264)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.682 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.stock.page.BuyPage.dispatchTouchEvent(BuyPage.java:662)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at com.sinapay.cpb.transaction.NavigationFragment$CoverTouch.onTouch(NavigationFragment.java:563)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.View.dispatchTouchEvent(View.java:7713)
10-26 14:51:54.692 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2068)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1515)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.app.Activity.dispatchTouchEvent(Activity.java:2476)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2016)
10-26 14:51:54.702 15442-15442/com.wexmarket.jyh W/System.err: at android.view.View.dispatchPointerEvent(View.java:7898)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4013)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3892)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3453)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3503)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3472)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3579)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3480)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3636)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3453)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3503)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3472)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3480)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3453)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5598)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5578)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5549)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5678)
10-26 14:51:54.712 15442-15442/com.wexmarket.jyh W/System.err: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:5651)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:5697)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:574)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.Choreographer.doFrame(Choreographer.java:542)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.os.Handler.handleCallback(Handler.java:733)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.os.Looper.loop(Looper.java:136)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5072)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at java.lang.reflect.Method.invoke(Method.java:515)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
10-26 14:51:54.722 15442-15442/com.wexmarket.jyh W/System.err: at dalvik.system.NativeStart.main(Native Method)
Handler在子线程中时需要先判断空
=================================================================================
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: FATAL EXCEPTION: main
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: Process: com.example.lulingzhi.chartdemo, PID: 9595
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: android.view.InflateException: Binary XML file line #15: Error inflating class com.wexmarket.wexchart.chart.StockDrawWave
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:623)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.View.inflate(View.java:17504)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at com.wexmarket.demos.chartdemo.MainActivity$1.instantiateItem(MainActivity.java:83)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:870)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.support.v4.view.ViewPager.populate(ViewPager.java:1086)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.support.v4.view.ViewPager.populate(ViewPager.java:952)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.view.View.measure(View.java:16529)
10-30 18:29:51.303 9595-9595/com.example.lulingzhi.chartdemo E/AndroidRuntime: at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:719)
// v = View.inflate(getApplicationContext(), R.layout.time_share_demo, null);
v = View.inflate(MainActivity.this,R.layout.time_share_demo,null);
getApplicationContext()改用(MainActivity.this
=================================================================================
安装短暂崩溃
11-16 14:43:24.542 4838-4899/com.wexmarket.jyh:xg_service_v2 E/TpnsWatchdog: [XGWatchdog.thread(33977): ProGuard:389]:Starting service: Intent { cmp=com.wexmarket.jyh/com.tencent.android.tpush.service.XGPushService }
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: FATAL EXCEPTION: main
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: Process: com.wexmarket.jyh, PID: 19869
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.sinapay.cpb.comm.App: java.lang.IllegalStateException: Unable to get package info for com.wexmarket.jyh; is package not installed?
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:509)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4367)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:141)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1273)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5072)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: Caused by: java.lang.IllegalStateException: Unable to get package info for com.wexmarket.jyh; is package not installed?
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:368)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.LoadedApk.getClassLoader(LoadedApk.java:321)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4367)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:141)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1273)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5072)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
11-16 14:46:36.412 19869-19869/com.wexmarket.jyh E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
11-16 14:46:42.052 20125-20149/com.wexmarket.jyh E/tokenonSuccess: 8e6cc95d2d8191f2460d8a97a11a30a7d3243da3
11-16 14:46:42.162 20179-20214/com.wexmarket.jyh:xg_service_v2 E/tokenonSuccess: 8e6cc95d2d8191f2460d8a97a11a30a7d3243da3
描述:安装app时,先弹出崩溃信息,再正常安装
解决:???
I think this happens when you run the app from eclipse while you already have the previous version installed ? This won't happen if you uninstall the app before running it again from eclipse. Also, this won't cause any problems.
以上问题只是出现在小米4 中,其他手机中均无问题
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: java.net.SocketTimeoutException
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at java.net.PlainSocketImpl.read(PlainSocketImpl.java:492)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:241)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at okio.Okio$2.read(Okio.java:139)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at okio.RealBufferedSource.indexOf(RealBufferedSource.java:306)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at okio.RealBufferedSource.indexOf(RealBufferedSource.java:300)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
11-17 15:36:16.657 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:906)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.internal.http.HttpEngine.access$300(HttpEngine.java:92)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:891)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:749)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.Call.getResponse(Call.java:268)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:224)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:195)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.squareup.okhttp.Call.execute(Call.java:79)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.networkbench.agent.impl.instrumentation.okhttp2.NBSCallExtension.execute(SourceFile:42)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.sinapay.comm.network.NetWork.okHttpPost(NetWork.java:156)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.sinapay.comm.network.NetWork.postRequest(NetWork.java:131)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.sinapay.comm.network.NetworkProxy$1.callService(NetworkProxy.java:36)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.sinapay.comm.network.NetworkTask.doInBackground(NetworkTask.java:43)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at com.sinapay.comm.network.NetworkTask.doInBackground(NetworkTask.java:6)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
11-17 15:36:16.667 20968-21043/com.wexmarket.jyh W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-17 15:36:16.677 20968-21043/com.wexmarket.jyh W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-17 15:36:16.677 20968-21043/com.wexmarket.jyh W/System.err: at java.lang.Thread.run(Thread.java:841)
org.gradle.api.GradleException: Could not determine the dependencies of task ':chartdemo:mockableAndroidJar'.
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.resolve(CachingTaskDependencyResolveContext.java:65)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:53)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.realizedDependencies(DefaultTaskExecutionPlan.java:181)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.addToTaskGraph(DefaultTaskExecutionPlan.java:138)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.addTasks(DefaultTaskGraphExecuter.java:99)
at org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:47)
at org.gradle.execution.DefaultBuildExecuter.configure(DefaultBuildExecuter.java:42)
at org.gradle.execution.DefaultBuildExecuter.access$100(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:48)
at org.gradle.execution.ExcludedTaskFilteringBuildConfigurationAction.configure(ExcludedTaskFilteringBuildConfigurationAction.java:47)
at org.gradle.execution.DefaultBuildExecuter.configure(DefaultBuildExecuter.java:42)
at org.gradle.execution.DefaultBuildExecuter.access$100(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:48)
at org.gradle.execution.DefaultTasksBuildExecutionAction.configure(DefaultTasksBuildExecutionAction.java:44)
at org.gradle.execution.DefaultBuildExecuter.configure(DefaultBuildExecuter.java:42)
at org.gradle.execution.DefaultBuildExecuter.select(DefaultBuildExecuter.java:35)
at org.gradle.initialization.DefaultGradleLauncher$5.run(DefaultGradleLauncher.java:162)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:47)
at org.gradle.initialization.DefaultGradleLauncher.runBuildOperation(DefaultGradleLauncher.java:189)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:159)
at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:35)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:104)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:97)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
at org.gradle.initialization.DefaultGradleLauncher.runRootBuildOperation(DefaultGradleLauncher.java:184)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:97)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:93)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:27)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:72)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:44)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:50)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:27)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:40)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.lang.NullPointerException
at com.android.build.gradle.internal.TaskManager$8.call(TaskManager.java:401)
at com.android.build.gradle.internal.TaskManager$8.call(TaskManager.java:398)
at org.gradle.api.internal.ConventionAwareHelper$2.getValue(ConventionAwareHelper.java:84)
at org.gradle.api.internal.ConventionAwareHelper$MappedPropertyImpl.getValue(ConventionAwareHelper.java:136)
at org.gradle.api.internal.ConventionAwareHelper.getConventionValue(ConventionAwareHelper.java:114)
at com.android.build.gradle.internal.tasks.MockableAndroidJarTask_Decorated.getAndroidJar(Unknown Source)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$PropertyInfo$4.create(AnnotationProcessingTaskFactory.java:460)
at org.gradle.util.SingleMessageLogger.whileDisabled(SingleMessageLogger.java:166)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$PropertyInfo.getValue(AnnotationProcessingTaskFactory.java:458)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$Validator$1.call(AnnotationProcessingTaskFactory.java:262)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.doResolve(DefaultFileCollectionResolveContext.java:123)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:78)
at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext$BuildableFileTreeInternalConverter.convertInto(BuildDependenciesOnlyFile
CollectionResolveContext.java:50)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.doResolve(DefaultFileCollectionResolveContext.java:101)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveAsFileCollections(DefaultFileCollectionResolveContext.java:85)
at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext.resolveAsBuildables(BuildDependenciesOnlyFileCollectionResolveContext.ja
va:43)
at org.gradle.api.internal.file.CompositeFileCollection.addDependencies(CompositeFileCollection.java:136)
at org.gradle.api.internal.file.CompositeFileCollection$3.resolve(CompositeFileCollection.java:124)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext$TaskGraphImpl.getNodeValues(CachingTaskDependencyResolveContext.java:86)
at org.gradle.internal.graph.CachingDirectedGraphWalker$GraphWithEmpyEdges.getNodeValues(CachingDirectedGraphWalker.java:200)
at org.gradle.internal.graph.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:112)
at org.gradle.internal.graph.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:64)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.doResolve(CachingTaskDependencyResolveContext.java:74)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.resolve(CachingTaskDependencyResolveContext.java:63)
... 55 more
as菜单中点击 clean 时 显示Execution failed wetchart:processResources Android Studio 错误
上面的stacktrace的是在terminal中用 命令: gradlew clean -stacktrace 打印出来的
解决:升级platform tools 到23.1 rcl就可以了
问题分析:as的提示信息非常恶心,完全不知道怎么回事。这个问题是在升级之后产生的,后者是在提高了gradle中buildToolsVersion之后产生的,最后更新了buildtools到23.0.1,但是没有更新platform tools,然后就产生了上述问题。。。