Expo -Entwicklung Build Fehler: Fehler auflösen Plugin [ID: 'com.facebook.react.Setings'] (React Native 0,76.9, SDK 52)Android

Forum für diejenigen, die für Android programmieren
Anonymous
 Expo -Entwicklung Build Fehler: Fehler auflösen Plugin [ID: 'com.facebook.react.Setings'] (React Native 0,76.9, SDK 52)

Post by Anonymous »

Ich baue eine App mit Expo SDK 52 mit einem -Entwicklungsbau (

Code: Select all

npx expo run:android
) auf React Native 0.76.9 , und ich erhalte diesen Fehler:

Code: Select all

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\...

Ich verwende Expos verwalteten Workflow mit Entwicklungsbaut. https://github.com/expo/expo/issues/34613
Ich habe dort sogar den letzten Kommentar hinzugefügt, aber das Problem bleibt für mich immer noch ungelöst.

Code: Select all

{
"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:

Code: Select all

{
"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
}

Wie behebe ich dieses Problem mit Plugin -Auflösung?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post