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 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 95#251914607

    GitHub | 8 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
  2. 0

    InflateException when starting SherlockPreferenceActivity in landscape

    GitHub | 6 years ago | nelenkov
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nick.wwwjdic/org.nick.wwwjdic.WwwjdicPreferences}: android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
  3. 0

    How to implement Google Maps new version of API v2

    Stack Overflow | 4 years ago | bapatla
    android.view.InflateException: Binary XML file line #2: Error inflating class fragment 12-17 16:24:49.086: E/AndroidRuntime(9088): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581) 12-17 16:24:49.086: E/AndroidRuntime(9088): at android.view.LayoutInflater.inflate(LayoutInflater.java:386) 12-17 16:24:49.086: E/AndroidRuntime(9088): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Robolectric inflating custom views for tests

    Stack Overflow | 2 years ago | recipherus
    android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
  6. 0

    GitHub comment 105#2677054

    GitHub | 6 years ago | JakeWharton
    android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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