-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build failed in react-native 0.60.0 #711
Comments
I meet the same problem. "react": "^16.8.6",
"react-native": "^0.60.0",
"react-native-fs": "^2.13.3", The log: > Task :react-native-fs:compileDebugJavaWithJavac FAILED
C:\drn\node_modules\react-native-fs\android\src\main\java\com\rnfs\RNFSManager.java:11: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
C:\drn\node_modules\react-native-fs\android\src\main\java\com\rnfs\RNFSManager.java:624: error: cannot find symbol
private void sendEvent(ReactContext reactContext, String eventName, @Nullable WritableMap params) {
^
symbol: class Nullable
location: class RNFSManager
Note: C:\drn\node_modules\react-native-fs\android\src\main\java\com\rnfs\RNFSManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-fs:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details. @darsodango |
@flyher I think it is but the only difference between that issue is the react-native version |
Hello there, @flyher the logs tells you that the package android.support.annotation.Nullable doesn't exist. you need to remove both the imports and the annotation here : https://github.com/itinance/react-native-fs/blob/v2.13.3/android/src/main/java/com/rnfs/RNFSManager.java#L624 (delete both |
Do you really see #709 |
please update latest version this problem. I manually change the code. but it is not true. |
Any news? |
getting this error Execution failed for task ':react-native-fs:javaPreCompileDebug'. |
getting this error Execution failed for task ':react-native-fs:javaPreCompileDebug'. |
My react-native version is
0.60.0
and my react-native-fs2.13.3
and it's throwing anRNFSManager.java uses or overrides a deprecated API
The text was updated successfully, but these errors were encountered: