flutter - failure: Build failed with an exception - Stack Overflow

What went wrong:Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.

  • 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, .gradle.libraryelements=jar, .gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: C:\Users\K.VARSHITH REDDY\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar. > Error while executing process C:\Program Files\Android\Android Studio3\jbr\bin\jlink.exe with arguments {--module-path C:\Users\K.VARSHITH REDDY.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\temp\jmod --add-modules java.base --output C:\Users\K.VARSHITH REDDY.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\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 8s Error: Gradle task assembleDebug failed with exit code 1

clear cache and restarted it but got same error gradlew.bat : The term 'gradlew.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • gradlew.bat
  •   + CategoryInfo          : ObjectNotFound: (gradlew.bat:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742414796a4439533.html

相关推荐

  • flutter - failure: Build failed with an exception - Stack Overflow

    What went wrong:Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信