Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac 运行Android应用报错,构建应用失败 #943

Open
jiusinian opened this issue Mar 21, 2025 · 1 comment
Open

mac 运行Android应用报错,构建应用失败 #943

jiusinian opened this issue Mar 21, 2025 · 1 comment

Comments

@jiusinian
Copy link

请按以下格式提供问题的相关信息。

问题的具体描述

yarn start报错

Image

npx react-native info输出结果:
node 版本:v23.10.0
jdk版本:17.0.14
react: 18.2.0
react-native: 0.75.0
react-native-community/cli:18.0.0

Image Image Image Image

package.json 内容:
{
"name": "AwesomeProject",
"version": "3.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"buildios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest ./ios",
"preinstall": "npx npm-force-resolutions"
},
"dependencies": {
"@ant-design/icons-react-native": "^2.3.2",
"@ant-design/react-native": "^5.1.2",
"@bang88/china-city-data": "^1.0.0",
"@miblanchard/react-native-slider": "^2.6.0",
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-native-camera-roll/camera-roll": "^7.5.2",
"@react-native-community/blur": "^4.4.0",
"@react-native-community/cli": "^18.0.0",
"@react-native-community/geolocation": "^3.2.1",
"@react-native-community/image-editor": "^4.2.0",
"@react-native-community/segmented-control": "^2.2.2",
"@react-native-community/slider": "^4.5.2",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"axios": "^1.7.4",
"buffer": "^6.0.3",
"crypto-js": "^4.2.0",
"dva-core": "^2.0.4",
"invariant": "^2.2.4",
"jasypt": "^1.0.7",
"jcore-react-native": "^2.2.1",
"jpush-react-native": "^3.1.0",
"jsencrypt": "^3.3.2",
"lodash": "^4.17.21",
"native-base": "^3.4.28",
"randomcolor": "^0.6.2",
"react": "18.2.0",
"react-native": "0.75.0",
"react-native-blob-util": "^0.19.9",
"react-native-chart-kit": "^6.12.0",
"react-native-circular-progress": "^1.4.0",
"react-native-circular-slider": "^1.0.1",
"react-native-crypto-js": "^1.0.0",
"react-native-device-info": "^10.13.2",
"react-native-drag-sort": "^2.4.4",
"react-native-exit-app": "^2.0.0",
"react-native-fs": "^2.20.0",
"react-native-geolocation": "^1.0.0",
"react-native-gesture-handler": "^2.16.0",
"react-native-image-crop-picker": "^0.41.1",
"react-native-linear-gradient": "^2.8.3",
"react-native-pager-view": "^6.3.1",
"react-native-pdf": "^6.7.5",
"react-native-qrcode-svg": "^6.3.0",
"react-native-reanimated": "^3.14.0",
"react-native-root-checker": "^0.4.0",
"react-native-safe-area-context": "^3.4.1",
"react-native-screens": "^3.30.1",
"react-native-segmented-control-2": "^2.0.1",
"react-native-shadow-2": "^7.0.8",
"react-native-svg": "^12.1.1",
"react-native-svg-transformer": "^1.4.0",
"react-native-swiper": "^1.6.0",
"react-native-tab-view": "^3.5.2",
"react-native-torch": "^1.2.0",
"react-native-vector-icons": "^10.0.3",
"react-native-vision-camera": "^3.9.2",
"react-native-webview": "^13.12.4",
"react-native-worklets-core": "^1.5.0",
"react-redux": "^9.1.2",
"redux": "^5.0.1",
"redux-saga": "^1.3.0",
"rn-circular-slider": "^1.1.0",
"rn-qr-generator": "^1.4.0",
"rn-tourguide": "^3.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.73.21",
"@react-native/eslint-config": "0.73.2",
"@react-native/metro-config": "0.73.5",
"@react-native/typescript-config": "0.73.1",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"javascript-obfuscator": "^4.1.1",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
},
"resolutions": {
"unset-value": "^2.0.1",
"send": "^0.19.0",
"fast-xml-parser": "^4.4.1"
}
}

预期结果

  • 请描述你觉得代码正常运行的情况应该是什么样子。
  • 如果问题比较模糊,没有具体方案,那么请具体描述你想要实现什么功能。
@sunnylqm
Copy link

这是旧版本升级上来的项目吗?没有完整剔除flipper的依赖,建议参考 https://react-native-community.github.io/upgrade-helper/ 重新对齐,该改的改,该删的删

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants