android.view.InflateException: Binary XML file line #18: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by sinanyil
, 9 months ago
Binary XML file line #18: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
via GitHub by smail2133
, 1 month ago
Binary XML file line #2: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by ghiltanas
, 1 year ago
Binary XML file line #28: Binary XML file line #28: Error inflating class com.marcocreation.*******.DrawingView
via Stack Overflow by vishnuajan
, 1 year ago
Binary XML file line #19: Binary XML file line #19: Error inflating class <unknown>
via Stack Overflow by fpeposhi
, 1 year ago
Binary XML file line #21: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout
android.view.InflateException: Binary XML file line #18: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
at android.view.LayoutInflater.inflate(LayoutInflater.java:485)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.support.design.widget.Snackbar.(Snackbar.java:188)
at android.support.design.widget.Snackbar.make(Snackbar.java:215)
at mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method)
at mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:30)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21153)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5480)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
62 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.