react-native-date-picker: 3.4.1 does not compile
Describe the bug A clear and concise description of what the bug is.
Does not compile:
> Task :react-native-date-picker:compileReleaseJavaWithJavac FAILED
node_modules/react-native-date-picker/android/src/main/java/com/henninghall/date_picker/pickers/
AndroidNative.java:56: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
symbol: variable Q
location: class VERSION_CODES
node_modules/react-native-date-picker/android/src/main/java/com/henninghall/date_picker/pickers/
AndroidNative.java:57: error: incompatible types: int cannot be converted to String
setTextColor(color);
compileSdk = 30
buildTools = "30.0.2"
minSdk = 22
targetSdk = 30
Smartphone (please complete the following information):
- OS: Android
- React Native version 0.65.1
- react-native-date-picker version 3.4.1
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 17 (8 by maintainers)
I only get one error, which is:
@MujtabaFR you did remember to rebuild after install right?
react-native 0.61.5 picker 4.2.0 Android only builds when comment the line // super.setTextColor(color);