Java 如何解决二进制XML文件上的android.view.InflateException?
在我的场景中,当我试图运行我的android应用程序时,我在片段部分的Java 如何解决二进制XML文件上的android.view.InflateException?,java,android,xml,android-10.0,Java,Android,Xml,Android 10.0,在我的场景中,当我试图运行我的android应用程序时,我在片段部分的二进制XML文件行#120上得到了android.view.InflateException。我无法获得有关此错误的更多信息,但当我将androidAPI 28更改为29时,只有我收到了此错误。如何解决这个问题 下面的MyCode <include layout="@layout/fragmentsection" android:layout_width="match_parent" android:lay
二进制XML
文件行#120上得到了android.view.InflateException
。我无法获得有关此错误的更多信息,但当我将androidAPI 28更改为29时,只有我收到了此错误。如何解决这个问题
下面的MyCode
<include
layout="@layout/fragmentsection"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center" />
这个异常几乎总是有一个子异常,这才是真正的原因。发布完整日志。这不是完整的堆栈跟踪。它大得多。我可以告诉您问题出在fragmentsection.xml文件中的Seekbar中。
Process: com.orgin.project_532, PID: 9982
Android.view.InflateException: Binary XML file line #120 in com.orgin.project_532: layout/fragmentsection: Binary XML file line #58 in com.orgin.project_532: layout/fragmentsecondsection: Error inflating exception.
Caused by: android.view.InflateException: Binary XML file line #58 in com.orgin.project_532: layout/fragmnetsecondsection: Error inflating class com.orgin.orgSeekBar
Caused by: java.lang.reflect.InvocationTargetException