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

> Task :react-native-blob-util:compileReleaseJavaWithJavac FAILED #399

Open
Ammar-Abid92 opened this issue Jan 1, 2025 · 1 comment
Open
Labels
documentation Improvements or additions to documentation no bug

Comments

@Ammar-Abid92
Copy link

Ammar-Abid92 commented Jan 1, 2025

Getting this issue only on android, not in ios.

Task :react-native-blob-util:compileReleaseJavaWithJavac FAILED
/Users/ammarabid/Desktop/ByteCorp/KeyElite/KeyeliteApp/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilPackage.java:5: error: cannot find symbol
import com.facebook.react.BaseReactPackage;
^
symbol: class BaseReactPackage
location: package com.facebook.react
/Users/ammarabid/Desktop/ByteCorp/KeyElite/KeyeliteApp/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilPackage.java:16: error: cannot find symbol
public class ReactNativeBlobUtilPackage extends BaseReactPackage {
^
symbol: class BaseReactPackage
/Users/ammarabid/Desktop/ByteCorp/KeyElite/KeyeliteApp/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilPackage.java:19: error: method does not override or implement a method from a supertype
@OverRide
^
/Users/ammarabid/Desktop/ByteCorp/KeyElite/KeyeliteApp/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilPackage.java:28: error: method does not override or implement a method from a supertype
@OverRide
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-blob-util:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.
Run with --scan to get full insights.

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

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

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 7s

This is my detail:
System:
OS: macOS 15.1.1
CPU: (8) arm64 Apple M3
Memory: 138.83 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.5
path: ~/.nvm/versions/node/v18.20.5/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.5/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.5/bin/npm
Watchman:
version: 2024.11.18.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12550806
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

@RonRadtke
Copy link
Owner

@Ammar-Abid92 from 0.21.x onwards I moved to a new base class to ensure compatibility with 0.77 and onwards.
Sadly that means incompatibility with RN < 0.74 and you are using 0.73. so you will have to upgrade RN or keep using the 0.19.x
But I forgot to write that in the docs, sorry. Will update the docs

@RonRadtke RonRadtke added documentation Improvements or additions to documentation no bug labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation no bug
Projects
None yet
Development

No branches or pull requests

2 participants