wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.45k stars 706 forks source link

Cannot build android in release #2203

Closed mary-ng5519 closed 1 year ago

mary-ng5519 commented 2 years ago

Description

Related to

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

Affected platforms

mary-ng5519 commented 2 years ago

fyi image

mary-ng5519 commented 2 years ago

image

fyi

kelvin-dev commented 2 years ago

@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 image

maheshvadecha commented 2 years ago

not woking

stale[bot] commented 1 year ago

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.