Issues in migrating older ExoPlayer API code to version 2.16.1

Solution 1:

Refer to exoplayer release notes to changes made in the API, and search for removed symboles from v2.4.0 up to the latest version. Keep in mind that v2.x.0 versions are major releases, and mostly introduce breaking changes in the API, since exoplayer is not using semantic versioning.

For example here you can find that ExoPlayerFactory is removed and you should use SimpleExoPlayer.Builder instead.