react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Cannot build android in release

Open mary-ng5519 opened this issue 3 years ago • 4 comments

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

mary-ng5519 avatar Aug 18 '22 21:08 mary-ng5519

fyi image

mary-ng5519 avatar Aug 18 '22 22:08 mary-ng5519

image

fyi

mary-ng5519 avatar Aug 19 '22 14:08 mary-ng5519

@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

kelvin-dev avatar Aug 20 '22 02:08 kelvin-dev

not woking

maheshvadecha avatar Sep 15 '22 19:09 maheshvadecha

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.

stale[bot] avatar Nov 19 '22 15:11 stale[bot]