dart - I face an Error while Starting my newly built Flutter App - Stack Overflow

admin2025-04-18  6

I want to Start my App.

PS D:\Documents\Flutter Projects\DBG-fe\android> flutter run
Changing current working directory to: D:\Documents\Flutter Projects\DBG-fe
Launching lib\main.dart on M2103K19I in debug mode...
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':path_provider_android: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\ALKESH VISHWKARMA\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
         > Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\ALKESH VISHWKARMA\.gradle\caches\transforms-3\8254df3c5c93aab8b63b7456581939e9\transformed\output\temp\jmod --add-modules java.base --output C:\Users\ALKESH VISHWKARMA\.gradle\caches\transforms-3\8254df3c5c93aab8b63b7456581939e9\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 .

BUILD FAILED in 1m 43s
Running Gradle task 'assembleDebug'...                            104.9s
Error: Gradle task assembleDebug failed with exit code 1
PS D:\Documents\Flutter Projects\DBG-fe\android> 

I want to Start my App.

PS D:\Documents\Flutter Projects\DBG-fe\android> flutter run
Changing current working directory to: D:\Documents\Flutter Projects\DBG-fe
Launching lib\main.dart on M2103K19I in debug mode...
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':path_provider_android: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\ALKESH VISHWKARMA\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
         > Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\ALKESH VISHWKARMA\.gradle\caches\transforms-3\8254df3c5c93aab8b63b7456581939e9\transformed\output\temp\jmod --add-modules java.base --output C:\Users\ALKESH VISHWKARMA\.gradle\caches\transforms-3\8254df3c5c93aab8b63b7456581939e9\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 1m 43s
Running Gradle task 'assembleDebug'...                            104.9s
Error: Gradle task assembleDebug failed with exit code 1
PS D:\Documents\Flutter Projects\DBG-fe\android> 
Share Improve this question edited Jan 29 at 17:48 Abion47 25k6 gold badges75 silver badges97 bronze badges asked Jan 29 at 9:47 Aklesh VishwakarmaAklesh Vishwakarma 1 3
  • Can you share your pubspec.yaml and build.gradle files? Also, which Android Studio version are you using? – tomerpacific Commented Jan 29 at 9:49
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented Jan 30 at 14:11
  • ____ stackoverflow.com/questions/33404552/… go through above link – Jwala Pratap Maurya Commented Feb 4 at 10:41
Add a comment  | 

1 Answer 1

Reset to default 0

try to update Flutter and android studio (if your cmmand line is outdated it will prompt you to update it)

转载请注明原文地址:http://anycun.com/QandA/1744976071a90287.html