czy0729 / Bangumi

:electron: An unofficial https://bgm.tv ui first app client for Android and iOS, built with React Native. 一个无广告、以爱好为驱动、不以盈利为目的、专门做 ACG 的类似豆瓣的追番记录,bgm.tv 第三方客户端。为移动端重新设计,内置大量加强的网页端难以实现的功能,且提供了相当的自定义选项。 目前已适配 iOS / Android / WSA、mobile / 简单 pad、light / dark theme、移动端网页。
https://czy0729.github.io/Bangumi-Storybook/storybook-static/iframe.html?id=screens-discovery--discovery&viewMode=story
MIT License
3.67k stars 132 forks source link

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. #129

Closed leekay0032 closed 10 months ago

leekay0032 commented 10 months ago

Task :app:createBundleReleaseJsAndAssets Error: Unable to resolve module react-native-svg from D:\rn-project\Bangumi\src\components\squircle\index.tsx: react-native-svg could not be found within the project or in these directories: nodemodules 6 | */ 7 | import React from 'react' 8 | import Svg, { Defs, ClipPath, Path } from 'react-native-svg' | ^ 9 | import MaskedView from '@react-native-masked-view/masked-view' 10 | import { } from '@stores' 11 | import { IOS } from '@constants' Error: Unable to resolve module react-native-svg from D:\rn-project\Bangumi\src\components\squircle\index.tsx: react-native-svg could not be found within the project or in these directories: nodemodules 6 | */ 7 | import React from 'react' 8 | import Svg, { Defs, ClipPath, Path } from 'react-native-svg' | ^ 9 | import MaskedView from '@react-native-masked-view/masked-view' 10 | import { } from '@stores' 11 | import { IOS } from '@constants' at ModuleResolver.resolveDependency (D:\rn-project\Bangumi\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:139:15) at DependencyGraph.resolveDependency (D:\rn-project\Bangumi\node_modules\metro\src\node-haste\DependencyGraph.js:277:43) at Object.resolve (D:\rn-project\Bangumi\node_modules\metro\src\lib\transformHelpers.js:169:21) at Graph._resolveDependencies (D:\rn-project\Bangumi\node_modules\metro\src\DeltaBundler\Graph.js:473:35) at Graph._processModule (D:\rn-project\Bangumi\node_modules\metro\src\DeltaBundler\Graph.js:261:38) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Graph._addDependency (D:\rn-project\Bangumi\node_modules\metro\src\DeltaBundler\Graph.js:372:20) at async Promise.all (index 57) at async Graph._processModule (D:\rn-project\Bangumi\node_modules\metro\src\DeltaBundler\Graph.js:322:5) at async Graph._addDependency (D:\rn-project\Bangumi\node_modules\metro\src\DeltaBundler\Graph.js:372:20)

Task :app:createBundleReleaseJsAndAssets FAILED w: Detected multiple Kotlin daemon sessions at build\kotlin\sessions

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.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/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4m 32s 1243 actionable tasks: 1070 executed, 173 up-to-date error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Windows 11 JDK 11 NODE 18.11.0

在打包android包时出现这个错误,你们有遇到的吗?

czy0729 commented 10 months ago

你可以把 tag 转到 8.3.1 的时候再试试打包,https://github.com/czy0729/Bangumi/tree/8.3.1

leekay0032 commented 10 months ago

可以,解决了