react-native: Generating release apk for the new architecture throws bunch of error
Description
created a new react-native project. I created a release apk without enabling the new arch and it generated the apk correctly.
Then I enabled the new arch and hermes
enableHermes: true
newArchEnabled=true
and then try to generate via android studio I get following errors
Later on I tried using cmd with following command
./gradlew bundleRelease
I get following error
I tried cleaning and invalidating cache as well
Repo is here https://github.com/PritishSawant/ReactNativeAndroidReleaseApkNewArch
Version
0.69.3
Output of npx react-native info
nfo Fetching system and libraries information… System: OS: macOS 12.4 CPU: (8) x64 Apple M1 Memory: 44.15 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.13.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 8.1.0 - /usr/local/bin/npm Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman 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.2 AI-212.5712.43.2112.8609683 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: javac 16 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.0.0 => 18.0.0 react-native: 0.69.0 => 0.69.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
Try generating a release apk with new arch enabled for android.
Snack, code example, screenshot, or link to a repository
https://github.com/PritishSawant/ReactNativeAndroidReleaseApkNewArch
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 16 (7 by maintainers)
@cortinico Thanks
Help for future me
https://stackoverflow.com/questions/28296237/set-android-home-environment-variable-in-mac