itinance / itinance/react-native-fs

Compile error "cannot find symbol P"

Open
#1,089 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.