Ivanuu

error listfragment

Jun 20th, 2020
1,397
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. E/AndroidRuntime: FATAL EXCEPTION: main
  2.     Process: ru.user.test, PID: 17257
  3.     java.lang.RuntimeException: Unable to start activity ComponentInfo{ru.user.test/ru.user.test.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment
  4.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
  5.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
  6.         at android.app.ActivityThread.-wrap12(ActivityThread.java)
  7.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
  8.         at android.os.Handler.dispatchMessage(Handler.java:102)
  9.         at android.os.Looper.loop(Looper.java:154)
  10.         at android.app.ActivityThread.main(ActivityThread.java:6119)
  11.         at java.lang.reflect.Method.invoke(Native Method)
  12.         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
  13.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
  14.      Caused by: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment
  15.      Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class fragment
  16.      Caused by: java.lang.IllegalArgumentException: Binary XML file line #18: Must specify unique android:id, android:tag, or have a parent with an id for ru.user.test.ItemFragment
  17.         at androidx.fragment.app.FragmentManagerImpl.onCreateView(FragmentManager.java:3717)
  18.         at androidx.fragment.app.FragmentController.onCreateView(FragmentController.java:120)
  19.         at androidx.fragment.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:405)
  20.         at androidx.fragment.app.FragmentActivity.onCreateView(FragmentActivity.java:387)
  21.         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:777)
  22.         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
  23.         at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
  24.         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
  25.         at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
  26.         at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
  27.         at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
  28.         at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
  29.         at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
  30.         at ru.user.test.MainActivity.onCreate(MainActivity.kt:12)
  31.         at android.app.Activity.performCreate(Activity.java:6679)
  32.         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
  33.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
  34.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
  35.         at android.app.ActivityThread.-wrap12(ActivityThread.java)
  36.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
  37.         at android.os.Handler.dispatchMessage(Handler.java:102)
  38.         at android.os.Looper.loop(Looper.java:154)
  39.         at android.app.ActivityThread.main(ActivityThread.java:6119)
  40.         at java.lang.reflect.Method.invoke(Native Method)
  41.         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
  42.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
  43. Process 17257 terminated.
RAW Paste Data