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

0.19.3 - ReactNativeBlobUtilPackage.java:30: error: cannot find symbol BuildConfig #315

Closed
claudiozam opened this issue Nov 16, 2023 · 4 comments · Fixed by #316
Closed

Comments

@claudiozam
Copy link

Hi, after upgrading to 0.19.3 I'am not able to run my android app from the command line.

I have this error.

..../node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilPackage.java:30: error: cannot find symbol
boolean isTurboModule = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
^
symbol: variable BuildConfig
location: class ReactNativeBlobUtilPackage

This is my current environment:

System:
  OS: macOS 14.1.1
  CPU: (12) arm64 Apple M2 Max
  Memory: 12.25 GB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.2.0
    path: /var/folders/pv/51qh3b417f995x35c1dfpyd80000gn/T/yarn--1700178466961-0.7102813556842231/node
  Yarn:
    version: 1.22.21
    path: /var/folders/pv/51qh3b417f995x35c1dfpyd80000gn/T/yarn--1700178466961-0.7102813556842231/yarn
  npm:
    version: 10.2.3
    path: /opt/homebrew/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.13.0
    path: /Users/xxxxxx/.rvm/rubies/ruby-3.1.4/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11005911
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 3.1.4
    path: /Users/xxxxxxxxxxx/.rvm/rubies/ruby-3.1.4/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.7
    wanted: ^0.72.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Thanks

@HarshSharma-0
Copy link

I am also running in the same error . I hope the developer will provide fix for this soon

@seratonik
Copy link

Experiencing the same issue, I was able to resolve it by updating the library's build.gradle file - the namespace seems to be set differently than the actual package names used in the .java files - I also added the buildFeatures { ... } block but I'm not sure if it's necessary - I just noticed other libs did it.

if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
      namespace "com.ReactNativeBlobUtil"
      buildFeatures {
          buildConfig true
      }
  }

@bym110
Copy link

bym110 commented Nov 17, 2023

running in the same error

@RonRadtke
Copy link
Owner

Fix going live soon.

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

Successfully merging a pull request may close this issue.

5 participants