react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Compile error "cannot find symbol P"

Open djibarian opened this issue 2 years ago • 2 comments

After upgrading stuff the following line

https://github.com/itinance/react-native-fs/blob/fcb62f622969be4634a8e2aebc67235bd1075c78/android/src/main/java/com/rnfs/RNFSManager.java#L119

throws the following error

.../node_modules/react-native-fs/android/src/main/java/com/rnfs/RNFSManager.java:119: error: cannot find symbol
    return android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.P ? "w" : "rwt";
                                                                             ^
  symbol:   variable P
  location: class VERSION_CODES

and can't figure out why. Previously 2.18.0 was compiling fine. Now it happens also with 2.19.0.

djibarian avatar Apr 06 '22 21:04 djibarian

I have same issue

NetPumi2 avatar Jul 27 '23 07:07 NetPumi2

I've same issue here. Rollback to version 2.15.0 and things are back to work.

henriqueadonai avatar Feb 26 '24 18:02 henriqueadonai