Android-Ausführung für Aufgabe „:app:compileDebugJavaWithJavac“ fehlgeschlagen. - Native reagierenAndroid

Forum für diejenigen, die für Android programmieren
Anonymous
 Android-Ausführung für Aufgabe „:app:compileDebugJavaWithJavac“ fehlgeschlagen. - Native reagieren

Post by Anonymous »

Ich arbeite an einer nativen React-Anwendung. Wenn ich versuche, die Anwendungen mit React-Native Run-Android zu erstellen, schlägt der Build fehl. Hier ist die Ausgabe des aufgetretenen Fehlers.

Code: Select all

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s
253 actionable tasks: 5 executed, 248 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug
debug Error: Command failed: ./gradlew app:installDebug
at checkExecSyncError (child_process.js:607:13)
at execFileSync (child_process.js:627:13)
at runOnAllDevices (/Users/FaisalHussain/mobile/node_modules/@react-native-community/cli/build/commands/runAndroid/runOnAllDevices.js:58:39)
at buildAndRun (/Users/FaisalHussain/mobile/node_modules/@react-native-community/cli/build/commands/runAndroid/runAndroid.js:142:41)
at then.result (/Users/FaisalHussain/mobile/node_modules/@react-native-community/cli/build/commands/runAndroid/runAndroid.js:104:12)
at 
at process._tickCallback (internal/process/next_tick.js:189:7)
Die Anwendung lief auf einer alten Version von React Native (0.48.x). Ich habe sie auf 0.59.10 aktualisiert.

Was ich bisher getan habe:
  • habe Jetifier verwendet, um Probleme mit den Plugins zu beheben.
  • überprüft, ob die Build-Tools-Version mit der Kompilierungs-SDK-Version übereinstimmt
  • überprüft, ob der Emulator läuft.
Daher habe ich alles versucht, was ich konnte, um dieses Problem zu lösen hatte kein Glück. Bitte helfen Sie mir, dieses Problem zu lösen. Ich freue mich auf Ihre Antworten.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post