Skip to content
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

Issue when run the app on device in android or ios #1223

Open
vinod1988 opened this issue Jan 20, 2024 · 1 comment
Open

Issue when run the app on device in android or ios #1223

vinod1988 opened this issue Jan 20, 2024 · 1 comment

Comments

@vinod1988
Copy link

react-native-fs = 2.20.0
React native = "react-native": "0.70.14",

Here is stack trace

Task :react-native-fs:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings
295 actionable tasks: 156 executed, 139 up-to-date
Note: /Users/vinod/workspace/vino/sk/yokohama/source_code/Yokohama/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/vinod/workspace/vino/sk/yokohama/source_code/Yokohama/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule, com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/vinod/workspace/vino/sk/yokohama/source_code/Yokohama/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
Note: /Users/vinod/workspace/vino/sk/yokohama/source_code/Yokohama/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.
1 error

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.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 58s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.

@vinod1988 vinod1988 changed the title Issue when run the app on device in android or iso Issue when run the app on device in android or ios Jan 20, 2024
@birdofpreyru
Copy link

birdofpreyru commented Jan 21, 2024

#1197 — The future of react-native-fs

TL;DR.: This repo is stale, no active work happening here now. I actively maintain a fork of the project, but it lives, and it is managed through a different repo — https://github.com/birdofpreyru/react-native-fs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants