ExoPlayer Error: cannot find symbol variable CRYPTO_MODE_AES_CBC

ExoPlayer Error: cannot find symbol variable CRYPTO_MODE_AES_CBC

从 github (https://github.com/google/ExoPlayer) 克隆了 Android ExoPlayer 项目 并在 Android Studio 中打开。

出现此错误:cannot find symbol variable CRYPTO_MODE_AES_CBC

如有任何修复建议,我们将不胜感激。

CRYPTO_MODE_AES_CBC was added in Android 7.0, API 24. Make sure you have API 24 installed and you are compiling with API 24 (which is the default).