beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 785 forks source link

Android build failed in #316

Open opp100 opened 6 years ago

opp100 commented 6 years ago

It is unable to build in version 4.3.6 on android. The error message here:

/Users/userA/code/react_native_project/node_modules/react-native-picker/android/src/main/java/com/beefe/picker/PickerViewModule.java:362: error: cannot find symbol
                    if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                                                                               ^
  symbol:   variable O
  location: class VERSION_CODES
1 error
:react-native-picker:compileReleaseJavaWithJavac FAILED
voratham commented 6 years ago

@opp100 you can consider from https://github.com/beefe/react-native-picker/pull/313