I get this error when I add the video-player plugin and build the application

Hi everyone, I have a problem with my app ionic 3 + angular + video-player

[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:123: error: cannot find symbol
[cordova] if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
[cordova] ^
[cordova] symbol: variable R
[cordova] location: class VERSION_CODES
[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
[cordova] dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
[cordova] ^
[cordova] symbol: variable Type
[cordova] location: class WindowInsets
[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
[cordova] dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
[cordova] ^
[cordova] symbol: method getInsetsController()
[cordova] location: class Window
[cordova] 3 errors
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ‘:app:compileDebugJavaWithJavac’.
[cordova] > Compilation failed; see the compiler error output for details.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 56s
[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/gradlew: Command failed with exit code 1 Error output:
[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:123: error: cannot find symbol
[cordova] if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
[cordova] ^
[cordova] symbol: variable R
[cordova] location: class VERSION_CODES
[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
[cordova] dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
[cordova] ^
[cordova] symbol: variable Type
[cordova] location: class WindowInsets
[cordova] /home/fouzo/Desktop/SERVER/FOUZO/exam/mobile/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
[cordova] dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
[cordova] ^
[cordova] symbol: method getInsetsController()
[cordova] location: class Window
[cordova] 3 errors
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ‘:app:compileDebugJavaWithJavac’.
[cordova] > Compilation failed; see the compiler error output for details.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 56s
[ERROR] An error occurred while running subprocess cordova.

    cordova build android --device exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

Please help me, thanks.

As documented here, VERSION_CODES.R was added in API 30, so you need to target at least that version with your compileSdkVersion, however you are conveying that setting to gradle.

@rapropos Thanks very much!