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

Can Not Find Symbol : BuildConfig #34661

Closed
hicath opened this issue Sep 12, 2022 · 5 comments
Closed

Can Not Find Symbol : BuildConfig #34661

hicath opened this issue Sep 12, 2022 · 5 comments
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@hicath
Copy link

hicath commented Sep 12, 2022

Description

I upgraded my react-native project from ~0.67.1 to 0.70.0, I followed all the guidance here: https://react-native-community.github.io/upgrade-helper/?from=0.67.1&to=0.70.0.

After the upgrade process, error start showing up saying

cannot find symbol if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
        ^
  symbol:   variable BuildConfig
  location: class MainApplication

and other similar BuildConfig error message on other files as well.

Version

0.70.0

Output of npx react-native info

System:
OS: macOS 12.2.1
CPU: (8) arm64 Apple M1
Memory: 1.15 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.0 => 0.70.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Snack, code example, screenshot, or link to a repository

Already provided above.

@hicath hicath added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Sep 12, 2022
@cortinico cortinico removed the Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) label Sep 15, 2022
@cortinico
Copy link
Contributor

cortinico commented Sep 15, 2022

After the upgrade process, error start showing up saying

This usually happens if you haven't built the project once.
Where are those errors showing up? In the IDE or in the terminal?

Can you post the output of yarn react-native android?

@bukhari-flip
Copy link

is this related to this #33623 ?

@cortinico
Copy link
Contributor

Yes it's related to #33623 as @bukhari-flip suggested.

@github-actions
Copy link

github-actions bot commented Apr 1, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 1, 2023
@github-actions
Copy link

github-actions bot commented Apr 9, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants