为了账号安全,请及时绑定邮箱和手机立即绑定

找不到错哪里,各位dalao帮忙看下log

找不到错哪里,各位dalao帮忙看下log

花式反手抠鼻屎 2017-10-08 17:01:10
FATAL EXCEPTION: main Process: per.apea_s.fastec.example, PID: 30215 java.lang.RuntimeException: Unable to start activity ComponentInfo{per.apea_s.fastec.example/per.apea_s.fastec.example.ExampleActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.wang.avi.Indicator.setColor(int)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2767) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2853) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1557) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6374) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.wang.avi.Indicator.setColor(int)' on a null object reference at com.wang.avi.AVLoadingIndicatorView.setIndicatorColor(AVLoadingIndicatorView.java:148) at com.wang.avi.AVLoadingIndicatorView.setIndicator(AVLoadingIndicatorView.java:125) at per.apea_s.latte.ui.LoaderCreator.create(LoaderCreator.java:24) at per.apea_s.latte.ui.LatteLoader.showLoading(LatteLoader.java:36) at per.apea_s.latte.ui.LatteLoader.showLoading(LatteLoader.java:30) at per.apea_s.latte.net.RestClient.request(RestClient.java:68) at per.apea_s.latte.net.RestClient.get(RestClient.java:97) at per.apea_s.fastec.example.ExampleDelegate.testRestClient(ExampleDelegate.java:53) at per.apea_s.fastec.example.ExampleDelegate.onBindView(ExampleDelegate.java:27) at per.apea_s.latte.delegates.BaseDelegate.onCreateView(BaseDelegate.java:38) at android.support.v4.app.Fragment.performCreateView(Fragment.java:2239) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1332) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1574) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1641) at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:794) at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2415) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2200) at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2153) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2063) at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:388) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:554) at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1322) at android.app.Activity.performStart(Activity.java:6777) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2730) ... 10 more 跟着傅猿猿老师写的,打开立马闪退。
查看完整描述

1 回答

?
蒲公英wsg

TA贡献242条经验 获得超126个赞

 'void com.wang.avi.Indicator.setColor(int)' on a null object reference

空指针异常,打个断点试试

查看完整回答
反对 回复 2017-10-08
  • 1 回答
  • 0 关注
  • 1591 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信