Fehler beim Erstellen der .AAB-Datei: com.facebook.react:react-native-gradle-plugin konnte nicht gefunden werdenAndroid

Forum für diejenigen, die für Android programmieren
Guest
 Fehler beim Erstellen der .AAB-Datei: com.facebook.react:react-native-gradle-plugin konnte nicht gefunden werden

Post by Guest »

Ich stoße auf ein Problem, wenn ich versuche, die .aab-Datei mit dem folgenden Befehl zu erstellen:
./gradlew bundleRelease
Die Fehlermeldung lautet wie folgt:

Code: Select all

A problem occurred configuring root project 'ProjectName'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.facebook.react:react-native-gradle-plugin:.
Required by:
project :
Es heißt, der Build sei fehlgeschlagen, weil „nicht alle Dateien für die Konfiguration ‚:classpath‘ aufgelöst werden konnten“ und com.facebook.react:react-native-gradle-plugin nicht gefunden werden konnte.< /p>
Die Komponente existiert in meinem Projekt und ist als Abhängigkeit im build.gradle angegeben. Es wird auch richtig angewendet. Hier ist ein Beispiel meines build.gradle:

Code: Select all

Path: C:\\ProjectName\\front\\android\\build.gradle

Code: Select all

dependencies {
classpath("com.android.tools.build:gradle:8.0.0")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("com.google.gms:google-services:4.3.15")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0")
}
Ich habe versucht, Versionen zu aktualisieren und Änderungen sowohl in build.gradle als auch in package.json gemäß den empfohlenen Lösungen vorzunehmen, aber das Problem besteht weiterhin.
Hier ist die Ausgabe der npx-Reaktion -native info-Befehl als Referenz:

Code: Select all

info Fetching system and libraries information...
(node:8980) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
System:
OS: Windows 11 10.0.26100
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 56.05 GB / 63.75 GB
Binaries:
Node:
version: 22.11.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.9.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "33"
- "34"
- "35"
Build Tools:
- 30.0.3
- 34.0.0
- 35.0.0
System Images:
- android-35 | Google Play Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-242.23339.11.2421.12550806
Visual Studio: Not Found
Languages:
Java: 17.0.13
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post