java.lang.RuntimeException: Unable to start activity ComponentInfo{com.application/com.application.MyActivity}: android.view.InflateException: Binary XML file line #47: Error inflating class com.lapism.searchview.SearchView

GitHub | robertoestivill | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NoSuchFieldError inflating SearchView

    GitHub | 1 year ago | robertoestivill
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.application/com.application.MyActivity}: android.view.InflateException: Binary XML file line #47: Error inflating class com.lapism.searchview.SearchView

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      No static field recyclerView of type I in class Lcom/lapism/searchview/R$id; or its superclasses (declaration of 'com.lapism.searchview.R$id' appears in /data/app/com.bitflow.beta-2/base.apk)

      at com.lapism.searchview.SearchView.initView()
    2. com.lapism.searchview
      SearchView.<init>
      1. com.lapism.searchview.SearchView.initView(SearchView.java:98)
      2. com.lapism.searchview.SearchView.<init>(SearchView.java:78)
      3. com.lapism.searchview.SearchView.<init>(SearchView.java:72)
      3 frames
    3. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Native Method)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:288)
      2 frames
    4. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createView(LayoutInflater.java:607)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
      3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
      4. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
      6 frames
    5. Android v7
      AppCompatActivity.setContentView
      1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256)
      2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
      2 frames
    6. com.application
      MyActivity.onCreate
      1. com.application.MyActivity.onCreate(MvpViewBaseActivity.java:49)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6010)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
      5. android.app.ActivityThread.access$800(ActivityThread.java:155)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5343)
      9 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames