Skip to content

Instantly share code, notes, and snippets.

@c-lamont
Created October 30, 2018 08:12
Show Gist options
  • Save c-lamont/01f68f8b4e08bc9d5199dedf68a0c042 to your computer and use it in GitHub Desktop.
Save c-lamont/01f68f8b4e08bc9d5199dedf68a0c042 to your computer and use it in GitHub Desktop.
Android.Views.InflateException: Binary XML file line #1: Error inflating class android.support.design.widget.BottomNavigationView ---> Java.Lang.Reflect.InvocationTargetException: ---> Java.Lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(android.content.res.ColorStateList)' on a null object reference
at java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(android.content.res.ColorStateList)' on a null object reference
at at android.support.design.internal.BottomNavigationItemView.setTextColor(BottomNavigationItemView.java:249)
at at android.support.design.internal.BottomNavigationMenuView.buildMenuView(BottomNavigationMenuView.java:278)
at at android.support.design.internal.BottomNavigationPresenter.updateMenuView(BottomNavigationPresenter.java:62)
at at android.support.design.widget.BottomNavigationView.inflateMenu(BottomNavigationView.java:236)
at at android.support.design.widget.BottomNavigationView.<init>(BottomNavigationView.java:165)
at at android.support.design.widget.BottomNavigationView.<init>(BottomNavigationView.java:114)
at at java.lang.reflect.Constructor.newInstance0(Native Method)
at at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at at android.view.LayoutInflater.createView(LayoutInflater.java:652)
at at mvvmcross.platforms.android.binding.views.MvxLayoutInflater_PrivateFactoryWrapper2.n_onCreateView(Native Method)
at at mvvmcross.platforms.android.binding.views.MvxLayoutInflater_PrivateFactoryWrapper2.onCreateView(MvxLayoutInflater_PrivateFactoryWrapper2.java:32)
at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:190)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:784)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
at at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at at md5406753473291f1137546ec42f200f2de.TabsRootActivity.n_onCreate(Native Method)
at at md5406753473291f1137546ec42f200f2de.TabsRootActivity.onCreate(TabsRootActivity.java:33)
at at android.app.Activity.performCreate(Activity.java:6942)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
at at android.app.ActivityThread.-wrap14(ActivityThread.java)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
at at android.os.Handler.dispatchMessage(Handler.java:102)
at at android.os.Looper.loop(Looper.java:154)
at at android.app.ActivityThread.main(ActivityThread.java:6682)
at at java.lang.reflect.Method.invoke(Native Method)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
--- End of inner exception stack trace ---
at java.lang.reflect.InvocationTargetException
at at java.lang.reflect.Constructor.newInstance0(Native Method)
at at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at at android.view.LayoutInflater.createView(LayoutInflater.java:652)
at at mvvmcross.platforms.android.binding.views.MvxLayoutInflater_PrivateFactoryWrapper2.n_onCreateView(Native Method)
at at mvvmcross.platforms.android.binding.views.MvxLayoutInflater_PrivateFactoryWrapper2.onCreateView(MvxLayoutInflater_PrivateFactoryWrapper2.java:32)
at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:190)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:784)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
at at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at at md5406753473291f1137546ec42f200f2de.TabsRootActivity.n_onCreate(Native Method)
at at md5406753473291f1137546ec42f200f2de.TabsRootActivity.onCreate(TabsRootActivity.java:33)
at at android.app.Activity.performCreate(Activity.java:6942)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
at at android.app.ActivityThread.-wrap14(ActivityThread.java)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
at at android.os.Handler.dispatchMessage(Handler.java:102)
at at android.os.Looper.loop(Looper.java:154)
at at android.app.ActivityThread.main(ActivityThread.java:6682)
at at java.lang.reflect.Method.invoke(Native Method)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
at Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(android.content.res.ColorStateList)' on a null object reference
at at android.support.design.internal.BottomNavigationItemView.setTextColor(BottomNavigationItemView.java:249)
at at android.support.design.internal.BottomNavigationMenuView.buildMenuView(BottomNavigationMenuView.java:278)
at at android.support.design.internal.BottomNavigationPresenter.updateMenuView(BottomNavigationPresenter.java:62)
at at android.support.design.widget.BottomNavigationView.inflateMenu(BottomNavigationView.java:236)
at at android.support.design.widget.BottomNavigationView.<init>(BottomNavigationView.java:165)
at at android.support.design.widget.BottomNavigationView.<init>(BottomNavigationView.java:114)
at ... 26 more
--- End of inner exception stack trace ---
at android.view.InflateException: Binary XML file line #1: Error inflating class android.support.design.widget.BottomNavigationView
at Caused by: java.lang.reflect.InvocationTargetException
at at java.lang.reflect.Constructor.newInstance0(Native Method)
at at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at at android.view.LayoutInflater.createView(LayoutInflater.java:652)
at at mvvmcross.platforms.android.binding.views.MvxLayoutInflater_PrivateFactoryWrapper2.n_onCreateView(Native Method)
at at mvvmcross.platforms.android.binding.views.MvxLayoutInflater_PrivateFactoryWrapper2.onCreateView(MvxLayoutInflater_PrivateFactoryWrapper2.java:32)
at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:190)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:784)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
at at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at at md5406753473291f1137546ec42f200f2de.TabsRootActivity.n_onCreate(Native Method)
at at md5406753473291f1137546ec42f200f2de.TabsRootActivity.onCreate(TabsRootActivity.java:33)
at at android.app.Activity.performCreate(Activity.java:6942)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
at at android.app.ActivityThread.-wrap14(ActivityThread.java)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
at at android.os.Handler.dispatchMessage(Handler.java:102)
at at android.os.Looper.loop(Looper.java:154)
at at android.app.ActivityThread.main(ActivityThread.java:6682)
at at java.lang.reflect.Method.invoke(Native Method)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
at Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(android.content.res.ColorStateList)' on a null object reference
at at android.support.design.internal.BottomNavigationItemView.setTextColor(BottomNavigationItemView.java:249)
at at android.support.design.internal.BottomNavigationMenuView.buildMenuView(BottomNavigationMenuView.java:278)
at at android.support.design.internal.BottomNavigationPresenter.updateMenuView(BottomNavigationPresenter.java:62)
at at android.support.design.widget.BottomNavigationView.inflateMenu(BottomNavigationView.java:236)
at at android.support.design.widget.BottomNavigationView.<init>(BottomNavigationView.java:165)
at at android.support.design.widget.BottomNavigationView.<init>(BottomNavigationView.java:114)
at ... 26 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment