3 problems in app

1-adding specifications to items isn’t working .
2-adding description to products is also not working .
3-App shut down when I open a category A (in items database) this happens after :

  • moving items to the category A containing sub-categories
  • Moving sub-category to a non empty A category .
  • deleting a non-empy categories .
    This is the logcat message (urgent)

2020-05-23 02:14:19.102 9746-9746/org.nearbyshops.enduserappnew D/AndroidRuntime: Shutting down VM
2020-05-23 02:14:19.105 9746-9746/org.nearbyshops.enduserappnew E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.nearbyshops.enduserappnew, PID: 9746
java.lang.IllegalStateException: Required view ‘more_options’ with ID 2131296910 for field ‘moreOptions’ and method ‘optionsOverflowClick’ was not found. If this view is optional add ‘@Nullable’ (fields) or ‘@Optional’ (methods) annotation.
at butterknife.internal.Utils.findRequiredView(Utils.java:84)
at com.nearbyshops.enduserappnew.ItemCatalogue.ItemsDatabaseForAdmin.ViewHolders.ViewHolderItemCategoryAdmin_ViewBinding.(ViewHolderItemCategoryAdmin_ViewBinding.java:49)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at butterknife.ButterKnife.bind(ButterKnife.java:170)
at com.nearbyshops.enduserappnew.ItemCatalogue.ItemsDatabaseForAdmin.ViewHolders.ViewHolderItemCategoryAdmin.(ViewHolderItemCategoryAdmin.java:113)
at com.nearbyshops.enduserappnew.ItemCatalogue.ItemsDatabaseForAdmin.ViewHolders.ViewHolderItemCategoryAdmin.createSmall(ViewHolderItemCategoryAdmin.java:99)
at com.nearbyshops.enduserappnew.ItemCatalogue.ItemsDatabaseForAdmin.AdapterItemCatHorizontalListAdmin.onCreateViewHolder(AdapterItemCatHorizontalListAdmin.java:56)
at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:7078)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6235)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6118)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6114)
at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2303)
at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1627)
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3540)
at android.view.View.measure(View.java:25362)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6859)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
at android.view.View.measure(View.java:25362)
at androidx.recyclerview.widget.GridLayoutManager.measureChildWithDecorationsAndMargin(GridLayoutManager.java:765)
at androidx.recyclerview.widget.GridLayoutManager.measureChild(GridLayoutManager.java:736)
at androidx.recyclerview.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:597)
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
at androidx.recyclerview.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3851)
at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4404)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:625)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
2020-05-23 02:14:19.106 9746-9746/org.nearbyshops.enduserappnew E/AndroidRuntime: at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at com.google.android.material.appbar.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:148)
at com.google.android.material.appbar.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:43)
at com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1892)
at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:918)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:784)
at android.view.View.layout(View.java:22740)
at android.view.ViewGroup.layout(ViewGroup.java:6291)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3444)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2921)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1901)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8137)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
at android.view.Choreographer.doCallbacks(Choreographer.java:796)
at android.view.Choreographer.doFrame(Choreographer.java:731)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7476)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:939)

OK i will look into it !

Have you made any changes to the layouts recently ! … because the more options which it is telling does not exist … do exist in the layout !

I have checked all the three cases and i did not found any problem in those operations !