title: Video View not working under Proguard
body: <p>There seems to be a problem in VideoView which doesn't work under Proguard. The following screen comes when a video is being started. </p>
  
  <p><a href="https://i.stack.imgur.com/LSDaA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LSDaA.png" alt="VideoView Not Working in Proguard"></a></p>
  
  <p>The code for Video View is as follows: </p>
  
  <pre><code>        mediaController= new MediaController(this);
          mediaController.hide();
          mediaController.setAnchorView(video_animation);
          Uri uri= Uri.parse("android.resource://" + getPackageName() + "/"
                  + R.raw.splash_min);
          video_animation.setMediaController(mediaController);
          video_animation.setVideoURI(uri);
          video_animation.requestFocus();
  
          video_animation.start();
  </code></pre>
  
  <p>Also there is no specific ProGuard setting added for VideoView to run.</p>
  
  <p>Excerpts of build.gradle </p>
  
  <pre><code>buildTypes {
          release {
              minifyEnabled true
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
              resValue "string", "FB_APP_ID", getFbAppKey()
          }
          debug {
              minifyEnabled true
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
              resValue "string", "FB_APP_ID", getFbAppKey()
          }
      }
  </code></pre>
  
  <p>Also there are product flavours being used just to manipulate with the application ID.</p>