Anonymous
Ошибка сборки разработки Expo: плагин устранения ошибок [id: 'com.facebook.react.settings'] (React Native 0.76.9, SDK 52
Сообщение
Anonymous » 20 янв 2026, 04:45
Я создаю приложение с использованием
Expo SDK 52 и
сборки для разработки (
) в
React Native 0.76.9 , и я получаю следующую ошибку:
Код: Выделить всё
FAILURE: Build failed with an exception.
* Where:
Settings file 'D:\git working projects\android apps\OVB25\android\settings.gradle' line: 4
* What went wrong:
Error resolving plugin [id: 'com.facebook.react.settings']
> A build operation failed.
> Could not read workspace metadata from C:\Users\Example\.gradle\caches\8.10.2\...
Я использую управляемый рабочий процесс Expo с
сборкой разработки , поэтому мой каталог android/
создается автоматически с помощью предварительной сборки npx expo.
Я уже решал эту проблему на GitHub:
https://github.com/expo/expo/issues/34613
Я даже добавил туда последний комментарий, но проблема для меня все еще остается нерешенной.
Вот соответствующие части моей конфигурации:
app.json:
Код: Выделить всё
{
"expo": {
"jsEngine": "hermes",
"name": "OVB25",
"slug": "OVB25",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"ios": {
"supportsTablet": true,
"jsEngine": "jsc"
},
"android": {
"compileSdkVersion": 34,
"targetSdkVersion": 34,
"buildToolsVersion": "34.0.0",
"googleServicesFile": "./google-services.json",
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.example",
"versionCode": 62
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router",
"@react-native-google-signin/google-signin",
[
"expo-splash-screen",
{
"image": "./assets/images/splash-icon.png",
"imageWidth": 200,
"resizeMode": "contain",
"backgroundColor": "#ffffff"
}
],
[
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"authToken": "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",
"organization": "example",
"project": "react-native"
}
],
"expo-secure-store",
"expo-build-properties"
],
"experiments": {
"typedRoutes": true
}
}
}
package.json:
Код: Выделить всё
{
"name": "ovb25",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"test": "jest --watchAll",
"lint": "expo lint"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/vector-icons": "^14.0.2",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-firebase/analytics": "^21.6.1",
"@react-native-firebase/app": "^21.6.1",
"@react-native-google-signin/google-signin": "^13.1.0",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@sentry/react-native": "~6.3.0",
"axios": "^1.7.9",
"expo": "^52.0.44",
"expo-application": "~6.0.2",
"expo-blur": "~14.0.3",
"expo-build-properties": "~0.13.2",
"expo-constants": "~17.0.5",
"expo-font": "~13.0.3",
"expo-haptics": "~14.0.1",
"expo-linking": "~7.0.5",
"expo-router": "~4.0.20",
"expo-secure-store": "~14.0.1",
"expo-splash-screen": "~0.29.21",
"expo-status-bar": "~2.0.1",
"expo-symbols": "~0.2.2",
"expo-system-ui": "~4.0.9",
"expo-web-browser": "~14.0.2",
"lottie-react-native": "7.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.76.9",
"react-native-base64": "^0.2.1",
"react-native-gesture-handler": "~2.20.2",
"react-native-permissions": "^5.2.5",
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "~4.12.0",
"react-native-screens": "~4.4.0",
"react-native-web": "~0.19.13",
"react-native-webview": "~13.12.5"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@types/jest": "^29.5.12",
"@types/react": "~18.3.12",
"@types/react-native": "^0.73.0",
"@types/react-test-renderer": "^18.3.0",
"jest": "^29.2.1",
"jest-expo": "~52.0.6",
"react-test-renderer": "18.3.1",
"typescript": "^5.3.3"
},
"private": true
}
Как решить проблему с разрешением плагина?
Подробнее здесь:
https://stackoverflow.com/questions/795 ... book-react
1768873550
Anonymous
Я создаю приложение с использованием [b]Expo SDK 52[/b] и [b]сборки для разработки[/b] ([code]npx expo run:android[/code]) в [b]React Native 0.76.9[/b], и я получаю следующую ошибку: [code]FAILURE: Build failed with an exception. * Where: Settings file 'D:\git working projects\android apps\OVB25\android\settings.gradle' line: 4 * What went wrong: Error resolving plugin [id: 'com.facebook.react.settings'] > A build operation failed. > Could not read workspace metadata from C:\Users\Example\.gradle\caches\8.10.2\... [/code] Я использую управляемый рабочий процесс Expo с [b]сборкой разработки[/b], поэтому мой каталог android/ [b]создается автоматически[/b] с помощью предварительной сборки npx expo. Я уже решал эту проблему на GitHub: 👉 https://github.com/expo/expo/issues/34613 Я даже добавил туда последний комментарий, но проблема для меня все еще остается нерешенной. Вот соответствующие части моей конфигурации: app.json: [code]{ "expo": { "jsEngine": "hermes", "name": "OVB25", "slug": "OVB25", "version": "1.0.0", "orientation": "portrait", "icon": "./assets/images/icon.png", "scheme": "myapp", "userInterfaceStyle": "automatic", "newArchEnabled": true, "ios": { "supportsTablet": true, "jsEngine": "jsc" }, "android": { "compileSdkVersion": 34, "targetSdkVersion": 34, "buildToolsVersion": "34.0.0", "googleServicesFile": "./google-services.json", "adaptiveIcon": { "foregroundImage": "./assets/images/adaptive-icon.png", "backgroundColor": "#ffffff" }, "package": "com.example", "versionCode": 62 }, "web": { "bundler": "metro", "output": "static", "favicon": "./assets/images/favicon.png" }, "plugins": [ "expo-router", "@react-native-google-signin/google-signin", [ "expo-splash-screen", { "image": "./assets/images/splash-icon.png", "imageWidth": 200, "resizeMode": "contain", "backgroundColor": "#ffffff" } ], [ "@sentry/react-native/expo", { "url": "https://sentry.io/", "authToken": "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", "organization": "example", "project": "react-native" } ], "expo-secure-store", "expo-build-properties" ], "experiments": { "typedRoutes": true } } } [/code] package.json: [code]{ "name": "ovb25", "main": "expo-router/entry", "version": "1.0.0", "scripts": { "start": "expo start", "reset-project": "node ./scripts/reset-project.js", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web", "test": "jest --watchAll", "lint": "expo lint" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/vector-icons": "^14.0.2", "@react-native-async-storage/async-storage": "1.23.1", "@react-native-firebase/analytics": "^21.6.1", "@react-native-firebase/app": "^21.6.1", "@react-native-google-signin/google-signin": "^13.1.0", "@react-navigation/bottom-tabs": "^7.2.0", "@react-navigation/native": "^7.0.14", "@sentry/react-native": "~6.3.0", "axios": "^1.7.9", "expo": "^52.0.44", "expo-application": "~6.0.2", "expo-blur": "~14.0.3", "expo-build-properties": "~0.13.2", "expo-constants": "~17.0.5", "expo-font": "~13.0.3", "expo-haptics": "~14.0.1", "expo-linking": "~7.0.5", "expo-router": "~4.0.20", "expo-secure-store": "~14.0.1", "expo-splash-screen": "~0.29.21", "expo-status-bar": "~2.0.1", "expo-symbols": "~0.2.2", "expo-system-ui": "~4.0.9", "expo-web-browser": "~14.0.2", "lottie-react-native": "7.1.0", "react": "18.3.1", "react-dom": "18.3.1", "react-native": "0.76.9", "react-native-base64": "^0.2.1", "react-native-gesture-handler": "~2.20.2", "react-native-permissions": "^5.2.5", "react-native-reanimated": "~3.16.1", "react-native-safe-area-context": "~4.12.0", "react-native-screens": "~4.4.0", "react-native-web": "~0.19.13", "react-native-webview": "~13.12.5" }, "devDependencies": { "@babel/core": "^7.25.2", "@types/jest": "^29.5.12", "@types/react": "~18.3.12", "@types/react-native": "^0.73.0", "@types/react-test-renderer": "^18.3.0", "jest": "^29.2.1", "jest-expo": "~52.0.6", "react-test-renderer": "18.3.1", "typescript": "^5.3.3" }, "private": true } [/code] Как решить проблему с разрешением плагина? Подробнее здесь: [url]https://stackoverflow.com/questions/79563235/expo-development-build-failing-error-resolving-plugin-id-com-facebook-react[/url]