Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何解决二进制XML文件上的android.view.InflateException?_Java_Android_Xml_Android 10.0 - Fatal编程技术网

Java 如何解决二进制XML文件上的android.view.InflateException?

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

在我的场景中,当我试图运行我的android应用程序时,我在片段部分的
二进制XML
文件行#120上得到了
android.view.InflateException
。我无法获得有关此错误的更多信息,但当我将android
API 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