Closed VaiteaBimOne closed 1 year ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Add or Reformat Version Info |
---|---|
:information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |
I added the ReactNativeFlipper.java file in all my env except main
.../android/app/src/debug/java/com/***/***/ReactNativeFlipper.java
.../android/app/src/internal/java/com/***/***/ReactNativeFlipper.java
.../android/app/src/release/java/com/***/***/ReactNativeFlipper.java
Your setup is correct. You probably have a typo somewhere that is causing the app/src/release/
to be ignored.
Please provide more context or use the reproducer template linked by the bot to reproduce your issue
@cortinico Hi! My bad! My release folder was in the gitignore and the flipper file was not pushed.
Description
I'm on react-native 72.4. While doing
./gradlew :app:assembleRelease :app:bundleRelease
I have the error:I have 3 env (debug, internal and release) from buildTypes
I added the ReactNativeFlipper.java file in all my env except main
.../android/app/src/debug/java/com/***/***/ReactNativeFlipper.java
.../android/app/src/internal/java/com/***/***/ReactNativeFlipper.java
.../android/app/src/release/java/com/***/***/ReactNativeFlipper.java
Now I can build and generate apks for internal and debug but the issue is with release. The only way to make it work is to have the ReactNativeFlipper.java in main with MainApplication.java but that cause the build to fail for internal and debug for duplicate class of ReactNativeFlipper.
Thanks!
React Native Version
0.72.4
Output of
npx react-native info
Steps to reproduce
when I run
./gradlew :app:assembleRelease :app:bundleRelease
Snack, screenshot, or link to a repository
./gradlew :app:assembleRelease :app:bundleRelease