private static boolean checkForExoPlayer(){
        boolean exoPlayerPresent = false;
        Class className = null;
        try{
            className = Class.forName("com.google.android.exoplayer2.ExoPlayerFactory");
            className = Class.forName("com.google.android.exoplayer2.source.hls.HlsMediaSource");
            className = Class.forName("com.google.android.exoplayer2.ui.PlayerView");
            Logger.d("ExoPlayer is present");
            exoPlayerPresent = true;
        }catch (Throwable t){
            Logger.d("ExoPlayer library files are missing!!!");
            Logger.d("Please add ExoPlayer dependencies to render InApp or Inbox messages playing video. For more information checkout CleverTap documentation.");
            if(className!=null)
                Logger.d("ExoPlayer classes not found "+className.getName());
            else
                Logger.d("ExoPlayer classes not found");
        }
        return exoPlayerPresent;
    }
private static boolean checkForExoPlayer ( ) { boolean exoPlayerPresent = false ; Class className = null ; try { className = Class . forName ( "com.google.android.exoplayer2.ExoPlayerFactory" ) ; className = Class . forName ( "com.google.android.exoplayer2.source.hls.HlsMediaSource" ) ; className = Class . forName ( "com.google.android.exoplayer2.ui.PlayerView" ) ; Logger . d ( "ExoPlayer is present" ) ; exoPlayerPresent = true ; } catch ( Throwable t ) { Logger . d ( "ExoPlayer library files are missing!!!" ) ; Logger . d ( "Please add ExoPlayer dependencies to render InApp or Inbox messages playing video. For more information checkout CleverTap documentation." ) ; if ( className != null ) Logger . d ( "ExoPlayer classes not found " + className . getName ( ) ) ; else Logger . d ( "ExoPlayer classes not found" ) ; } return exoPlayerPresent ; }
For Google Play Store/Android Studio analytics