java.lang.IllegalArgumentException: The surface has been released

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

    MediaPlayer.create() sometimes return null

    Stack Overflow | 8 months ago | Peter Barbanyaga
    java.lang.IllegalArgumentException: The surface has been released

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The surface has been released

      at android.media.MediaPlayer._setVideoSurface()
    2. Android Platform
      MediaPlayer.create
      1. android.media.MediaPlayer._setVideoSurface(Native Method)
      2. android.media.MediaPlayer.setDisplay(MediaPlayer.java:731)
      3. android.media.MediaPlayer.create(MediaPlayer.java:882)
      3 frames