-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Cannot find symbol variable ReactNativeFlipper in MainApplication.java #36179
Comments
I've checked your Could you try to replicate this in a reproducer from |
Ok so apparently I did have a wrong package name in the ReactNativeFlipper.java in the release folder, so it did not get imported correctly. This happened because the upgrade helper prefixes the app name with Thanks for your hint and pair of eyes :) |
That's a great suggestion actually 🤔 don't you mind opening a feature request here: |
here we go |
Closing as we don't have code inside RN that controls this logic 👍 It's up to the upgrade-helper |
Maybe it could be useful for someone. I also had this error and wrong directory structure for release build after using react-native-rename on the fresh new project (directory for "middle string" in bundle id was missing) |
Ok |
Description
As many others, I am running in this issue when trying to build a release variant on android:
Although I do have the correct file at
android/app/src/release/java/world/smokeless/android/ReactNativeFlipper.java
We also only have two build types debug and release, BUT we have three buildFlavors
dev
,stage
andproduction
.Do I have to adjust anything regarding the flavors maybe?
Version
0.71.3
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1
Memory: 51.19 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.14.0 - ~/Library/Caches/fnm_multishells/21608_1676535665395/bin/node
Yarn: Not Found
npm: 9.3.1 - ~/Library/Caches/fnm_multishells/21608_1676535665395/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.3 => 0.71.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Try to build a android app release app with build flavors.
Snack, code example, screenshot, or link to a repository
build.gradle android section
The text was updated successfully, but these errors were encountered: