小白不懂,请大神赐教!找了半天找不出问题在哪,崩溃了!只有大屏才出现异常

FATAL EXCEPTION: main Process: com.general.player, PID: 22010 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.general.player/com.general.player.view.VideoView2}: android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class com.general.video.widget.media.VideoView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350) at android.app.ActivityThread.access$1100(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7237) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class com.general.video.widget.media.VideoView

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
   android:layout_height="match_parent">


   <!--  解决竖屏问题-->
   <FrameLayout
       android:id="@+id/frameLayout"
       android:layout_width="match_parent"
       android:layout_height="match_parent">

       <com.general.video.widget.media.VideoView
           android:id="@+id/video_view8"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_gravity="center" />
   </FrameLayout>


</RelativeLayout>

由于字数上限 部分代码已经隐藏了

VideoView FrameLayout MediaController.MediaPlayerControl {
  VideoView(Context context) {
        (context)}

    VideoView(Context contextAttributeSet attrs) {
        (contextattrs)}

    VideoView(Context contextAttributeSet attrsdefStyle) {
        (contextattrsdefStyle)}


郅樽general
浏览 2727回答 2
2回答

明日之绍3510634

这么多 是不是可以先加个截图啥的 这样看代码有点晃眼。。。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android