Mein Flutter-Projekt läuft in Android Studio einwandfrei, aber VS Code und andere Plattformen zeigen KonfigurationsfehleAndroid

Forum für diejenigen, die für Android programmieren
Anonymous
 Mein Flutter-Projekt läuft in Android Studio einwandfrei, aber VS Code und andere Plattformen zeigen Konfigurationsfehle

Post by Anonymous »

Ich habe ein Flutter-Projekt mit Android Studio erstellt, musste aber auf die Verwendung von VS Code umsteigen. Als ich versuchte, den Build mit VS-Code auszuführen, gab es einen Konfigurationsfehler (assembleDebug):
Image

Der Fehler wurde nur durch die Ausführung des Projekts oder durch das Erstellen eines Builds mit:

flutter run

Code: Select all

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':app:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: C:\Users\asus\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
> Error while executing process D:\PkgsAll\Android Studio3\jbr\bin\jlink.exe with arguments {--module-path C:\Users\asus\.gradle\caches\transforms-3\00bbcb0a8e5e7db2e6b01a54c9879d3e\transformed\output\temp\jmod --add-modules java.base --output C:\Users\asus\.gradle\caches\transforms-3\00bbcb0a8e5e7db2e6b01a54c9879d3e\transformed\output\jdkImage --disable-plugin system-modules}

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

BUILD FAILED in 3m 16s
Running Gradle task 'assembleDebug'...                            200.1s
Error: Gradle task assembleDebug failed with exit code 1
Das gewünschte Verhalten sollte so aussehen:

PS D:\AFlutter\prjs\flutterapp\flutterapp> flutter run

Code: Select all

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

Running Gradle task 'assembleDebug'...                             77.6s
√ Built build\app\outputs\flutter-apk\app-debug.apk
Installing build\app\outputs\flutter-apk\app-debug.apk...          11.3s
Syncing files to device sdk gphone64 x86 64...                     379ms

Flutter run key commands.
r Hot reload.
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on sdk gphone64 x86 64 is available at: http://127.0.0.1:7780/EmwWHWK2iWQ=/
The Flutter DevTools debugger and profiler on sdk gphone64 x86 64 is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:7780/EmwWHWK2iWQ=/
D/EGL_emulation(19692): app_time_stats: avg=612.76ms min=24.33ms max=1201.19ms count=2
D/EGL_emulation(19692): app_time_stats: avg=18335.46ms min=18335.46ms max=18335.46ms count=1

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post