There seems to be a problem in VideoView which doesn't work under Proguard. The following screen comes when a video is being started.
The code for Video View is as follows:
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();
Also there is no specific ProGuard setting added for VideoView to run.
Excerpts of build.gradle
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()
}
}
Also there are product flavours being used just to manipulate with the application ID.

