Cannot build android in release
Description
Related to
- [ X] Components
- [X ] Demo
- [ ] Docs
- [ X] Typings
Steps to reproduce
Clone the latest sourcebase
run npm install
follow the README guideline
run cd android && gradlew.bat clean && gradlew.bat assembleRelease
Expected behavior
the sourcebase should run properly in release APK;
Actual behavior
the sourcebase cannot be built in release mode for Android platform
More Info
Code snippet
info Done writing bundle output
info Done writing sourcemap output
info Copying 241 asset files
info Done copying assets
The system cannot find the path specified.
> Task :app:bundleReleaseJsAndAssets FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script 'D:\react-native-ui-lib\demo\node_modules\react-native\react.gradle' line: 257
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 15s
1 actionable task: 1 executed
Screenshots/Video
Environment
- React Native version: 0.68.3
- React Native UI Lib version: 6.20.0
Affected platforms
- [X] Android
- [X] iOS
- [ ] Web
fyi


fyi
@ethanshar @phathuynh5519 thats a critical issue in release mode, we been facing it, please help investigate the root cause, the playground demo cannot be evaluated in release build on Android

not woking
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.