Skip to content

Cannot build android in release  #2203

@mary-ng5519

Description

@mary-ng5519

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

  • Android
  • iOS
  • Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the componentswontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions