tobspr / cordova-plugin-android-notch

Plugin to query android notch insets
MIT License
19 stars 13 forks source link

Plugin generates error in PhoneGap Build #2

Closed DaveRand closed 5 years ago

DaveRand commented 5 years ago

I'm getting the following error when using PhoneGap Build and PhoneGap version 8.x.x:

Error: /var/gimlet/tmp/47027227847620/3613023/gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. /var/gimlet/tmp/47027227847620/3613023/app/src/main/java/com/tobspr/androidnotch/AndroidNotch.java:10: error: cannot find symbol import android.view.DisplayCutout; ^ symbol: class DisplayCutout location: package android.view /var/gimlet/tmp/47027227847620/3613023/app/src/main/java/com/tobspr/androidnotch/AndroidNotch.java:57: error: cannot find symbol final DisplayCutout cutout = insets.getDisplayCutout();

DaveRand commented 5 years ago

My Android target was set to 26. I changed it to 28 and now it builds ok.