android.view.InflateException: Binary XML file line #44: Binary XML file line #44: Error inflating class app.com.autovideosample.exoPlayer.ExoVideoView Unable to understand and in xml also it shows : The following classes could not be instantiated: - app.com.autovideosample.exoPlayer.ExoVideoView (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.NullPointerException

GitHub | ankitjain24x7 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 95#251914607

    GitHub | 5 months ago | ankitjain24x7
    android.view.InflateException: Binary XML file line #44: Binary XML file line #44: Error inflating class app.com.autovideosample.exoPlayer.ExoVideoView Unable to understand and in xml also it shows : The following classes could not be instantiated: - app.com.autovideosample.exoPlayer.ExoVideoView (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.NullPointerException

    Root Cause Analysis

    1. android.view.InflateException

      Binary XML file line #44: Binary XML file line #44: Error inflating class app.com.autovideosample.exoPlayer.ExoVideoView Unable to understand and in xml also it shows : The following classes could not be instantiated: - app.com.autovideosample.exoPlayer.ExoVideoView (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.NullPointerException

      at com.google.android.exoplayer2.util.Util.getUserAgent()
    2. com.google.android
      Util.getUserAgent
      1. com.google.android.exoplayer2.util.Util.getUserAgent(Util.java:677)
      1 frame
    3. app.com.autovideosample
      ExoVideoView.<init>
      1. app.com.autovideosample.exoPlayer.ExoVideoView.buildHttpDataSourceFactory(ExoVideoView.java:449)
      2. app.com.autovideosample.exoPlayer.ExoVideoView.buildDataSourceFactory(ExoVideoView.java:445)
      3. app.com.autovideosample.exoPlayer.ExoVideoView.buildDataSourceFactory(ExoVideoView.java:429)
      4. app.com.autovideosample.exoPlayer.ExoVideoView.<init>(ExoVideoView.java:178)
      5. app.com.autovideosample.exoPlayer.ExoVideoView.<init>(ExoVideoView.java:154)
      5 frames
    4. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      1 frame
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
      2. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
      3. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
      5. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:518)
      6 frames