Skip to content

Pull-request #70 breaks build for application that target older Android version #71

@vo-va

Description

@vo-va
<path_to_ionic_project>/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:123: error: cannot find symbol
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
                                                        ^
  symbol:   variable R
  location: class VERSION_CODES
<path_to_ionic_project>/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
            dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
                                                                      ^
  symbol:   variable Type
  location: class WindowInsets
<path_to_ionic_project>/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
            dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
                              ^
  symbol:   method getInsetsController()
  location: class Window

To fix build for myself I've pinned version of plugin that I use to #5c83c858ed159d68cce1bf54e31d6caf7e145fbf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions