facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.1k stars 24.07k forks source link

Packaging failure #44776

Closed wjg55555 closed 1 month ago

wjg55555 commented 1 month ago

Description

{ "name": "peiyinquan", "version": "0.0.1", "private": true, "scripts": { "GetuiConfigure": "node node_modules/react-native-getui/GetuiConfiguration.js", "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "-": "0.0.1", "@douugbr/react-native-apk-update": "^2.0.1", "@react-native-community/async-storage": "^1.12.1", "@react-native-community/blur": "^3.6.0", "@react-native-community/cameraroll": "^4.0.3", "@react-navigation/bottom-tabs": "^6.0.3", "@react-navigation/native": "^6.0.2", "@react-navigation/native-stack": "^6.0.4", "@react-navigation/stack": "^6.0.4", "axios": "^0.21.1", "base-64": "^1.0.0", "crypto-js": "^4.1.1", "js-cookie": "^3.0.0", "lottie-ios": "3.2.3", "lottie-react-native": "5.0.1", "moment": "^2.29.1", "native-base": "3.3.10", "qs": "^6.10.1", "react": "17.0.1", "react-native": "0.64.2", "react-native-agora": "3.5.0", "react-native-animated-screen": "^1.0.4", "react-native-audio": "^4.3.0", "react-native-calendars": "^1.1264.0", "react-native-cardview": "^2.0.5", "react-native-circular-progress": "^1.3.7", "react-native-device-info": "^8.1.7", "react-native-document-picker": "^6.0.4", "react-native-elements": "^3.4.2", "react-native-ffmpeg": "^0.5.2", "react-native-file-viewer": "^2.1.5", "react-native-fs": "^2.18.0", "react-native-gesture-handler": "^1.10.3", "react-native-getui": "1.1.32", "react-native-htmlview": "^0.16.0", "react-native-iap": "^7.5.6", "react-native-image-crop-picker": "^0.36.2", "react-native-image-resizer": "^1.4.5", "react-native-linear-gradient": "^2.5.6", "react-native-modal-dropdown": "^1.0.2", "react-native-modalbox": "^2.0.2", "react-native-orientation-mk": "^1.0.3", "react-native-pager-view": "^6.0.0-rc.0", "react-native-permissions": "^3.0.5", "react-native-popup-menu": "^0.15.11", "react-native-progress": "^5.0.1", "react-native-reanimated": "^2.2.0", "react-native-refresh": "^2.0.17", "react-native-s-alipay": "^1.0.8", "react-native-safe-area-context": "^3.3.2", "react-native-screens": "3.5.0", "react-native-selfadapt-modal": "^1.1.3", "react-native-shadow-cards": "^1.0.2", "react-native-share": "^7.0.1", "react-native-slider": "^0.11.0", "react-native-splash-screen": "^3.2.0", "react-native-svg": "^13.14.0", "react-native-swipeout": "^2.3.6", "react-native-swiper": "^1.6.0", "react-native-table-component": "^1.2.0", "react-native-vector-icons": "^10.0.0", "react-native-video": "5.1.1", "react-native-video-controls": "^2.8.1", "react-native-webview": "^11.26.1", "react-native-wechat-lib": "^1.1.27", "react-redux": "^7.2.4", "redux": "^4.1.1", "redux-thunk": "^2.3.0", "rgutil": "^2.0.1", "rn-app-upgrade": "^2.1.8", "rn-fetch-blob": "^0.12.0", "save": "^2.4.0", "styled-components": "^5.3.0", "styled-system": "^5.1.5", "teaset": "^0.7.5", "x2js": "^3.4.3" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.3", "eslint": "7.14.0", "jest": "^26.6.3", "metro-react-native-babel-preset": "^0.64.0", "react-test-renderer": "17.0.1" }, "jest": { "preset": "react-native" } }

Packaging failed using the./gradlew assembleRelease command. jdk17 node 14.18.2

distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip

Steps to reproduce

./gradlew assembleRelease

React Native Version

0.64.2

Affected Platforms

Runtime - Android

Output of npx react-native info

> Task :app:processReleaseMainManifest FAILED
Execution optimizations have been disabled for task ':app:processReleaseMainManifest' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'D:\svn\peiyinquan\mobile-peiyinquan-new-64-1\android\app\build\intermediates\navigation_json\release\navigation.json'. Reason: Task ':app:processReleaseMainManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#implicit_dependency for more details about this problem.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @c7abf1e

* 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.6/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 4 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

Stacktrace or Logs

> Task :app:processReleaseMainManifest FAILED
Execution optimizations have been disabled for task ':app:processReleaseMainManifest' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'D:\svn\peiyinquan\mobile-peiyinquan-new-64-1\android\app\build\intermediates\navigation_json\release\navigation.json'. Reason: Task ':app:processReleaseMainManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#implicit_dependency for more details about this problem.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @c7abf1e

* 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.6/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 4 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

Reproducer

no

Screenshots and Videos

No response

github-actions[bot] commented 1 month ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
github-actions[bot] commented 1 month ago
:warning: Too Old Version of React Native
:information_source: It looks like your issue or the example you provided uses a Too Old Version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.