Cannot build for target < android-23
zorn-v opened this issue · comments
zorn-v commented
If you set target=android-19
(for example) in platforms/android/project.properties
you get these errors
...\cordova\platforms\android\app\src\main\java\jk\cordova\plugin\kiosk\StatusBarOverlay.java:59: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // added in API level 23
^
symbol: variable M
location: class VERSION_CODES
...\cordova\platforms\android\app\src\main\java\jk\cordova\plugin\kiosk\StatusBarOverlay.java:60: error: cannot find symbol
if (! Settings.canDrawOverlays(activity)) {
^
symbol: method canDrawOverlays(Activity)
location: class Settings
...\cordova\platforms\android\app\src\main\java\jk\cordova\plugin\kiosk\StatusBarOverlay.java:61: error: cannot find symbol
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
^
symbol: variable ACTION_MANAGE_OVERLAY_PERMISSION
location: class Settings
Even if change Build.VERSION_CODES.M
to 23
other errors still remain