https://gradle.com/ logo
Join Slack
Powered by
# flutter
  • p

    PeshoO R. Marzouq

    12/01/2024, 12:47 PM
    I checked the Java version and the Gradle and everything is fine.
  • p

    PeshoO R. Marzouq

    12/01/2024, 12:49 PM
    I use sdk: '>=3.4.3 <4.0.0' and java 17.0.12 2024-07-16 LTS
  • p

    PeshoO R. Marzouq

    12/01/2024, 12:50 PM
    Copy code
    distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
  • a

    Augustine Ojeh

    12/04/2024, 8:24 AM
    Hi guys. New here. And great to be here. I’ve been building my first Flutter app for the past month. Now, I’m trying to build an apk release for internal testing. I’ve been tinkering on it for the past 3 days and for lack of better words, it’s been a heap of frustration. I’ve read every article and documentation I could lay my hands. To be frank, the readings were very helpful and I did make good progress. However, I’ve hit a snag and can’t seem to find a way around it. So, any help I can get will be appreciated. Happy to read some more, just point me to the documentation or something. Long story short, here’s the problem/error that I’m getting from my
    flutter build apk --release
    command:
    Copy code
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':flutter_plugin_android_lifecycle:generateReleaseRFile'.
    > A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable
       > /Users/ojeh/.gradle/caches/transforms-3/67ffce706dbb6b4e33828fbc98ca3a25/transformed/androidx.fragment-r.txt
    
    * 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 8m 16s
    Running Gradle task 'assembleRelease'...                          497.0s
    Gradle task assembleRelease failed with exit code 1
    I’m running the latest Flutter stable version (Flutter 3.24.5) revised 3 weeks ago. I’m executing the build on Android Studio Ladybug (latest version), and the Gradle version in the gradle-wrapper.properties config is 8.1.1 (relevant code line below)
    distributionUrl=https\:<//services.gradle.org/distributions/gradle-8.1.1-all.zip>
    All other configs are pretty much according to the direction specified in the Flutter docs. Any help at this point will be very much appreciated. Thanks in advance…
  • j

    Jeet Patel

    12/07/2024, 2:32 PM
    Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... 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. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. [Fatal Error] flutter_embedding_debug-1.0.0-a18df97ca57a249df5d8d68cd0820600223ce262.pom290: The markup in the document following the root element must be well-formed. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'path provider androidcompileDebugJavaWithJavac'.
    Could not resolve all files for configuration 'path provider androidandroidJdkImage'.
    > 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\jeets\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\jeets\.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\temp\jmod --add-modules java.base --output C:\Users\jeets\.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 https://help.gradle.org.
    BUILD FAILED in 2m 8s Error: Gradle task assembleDebug failed with exit code 1
    a
    • 2
    • 12
  • c

    CM Punk

    12/16/2024, 9:38 AM
    FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task 'appcompileFlutterBuildDebug'.
    Process 'command '/Users/piqotech/Documents/stableflutter/flutter/bin/flutter'' finished with non-zero exit value 1
    * 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.
    ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task 'file pickercompileDebugJavaWithJavac'.
    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 BUILD FAILED in 23s 730
  • j

    Juneroy D. Quinimon

    01/03/2025, 9:16 AM
    👋 Hello, team!
  • j

    Juneroy D. Quinimon

    01/03/2025, 9:18 AM
    can someone help me regarding on my issues i've encountered in flutter? i trying to implement a AR using arcore and flutter arcore_flutter_plugin but when i tried to run the command flutter run i always get this error
  • j

    Juneroy D. Quinimon

    01/03/2025, 9:19 AM
    image.png
  • j

    Juneroy D. Quinimon

    01/03/2025, 9:19 AM
    image.png
  • j

    Juneroy D. Quinimon

    01/03/2025, 9:20 AM
    and this is the plugin i used
  • o

    Omar Mohamed

    01/07/2025, 8:01 AM
    👋 Hello, team!
  • o

    Omar Mohamed

    01/07/2025, 8:07 AM
    can someone help me regarding on my issues i've encountered in flutter?
  • r

    Rakshitha Ramesh

    01/20/2025, 9:11 PM
    Hi Team, Anyone faced this issue? If i change version also, i am getting same error
  • m

    merah ibra

    01/22/2025, 7:28 AM
    Hello every one, So I just want to lunch this small project. please help.
  • m

    merah ibra

    01/22/2025, 7:31 AM
    workk.png
  • p

    Peter Jenex Sthanley Pontilla

    02/13/2025, 5:49 AM
    Screenshot 2025-02-13 at 1.49.27 PM.png
  • p

    Peter Jenex Sthanley Pontilla

    02/13/2025, 5:49 AM
    Hello Everyone! Anyone encounter this issue? Any solutions?
  • l

    Ligin Saji

    02/26/2025, 3:23 PM
    Hi guys can anyone help me with this problem.
  • r

    Ramakrushna Sahoo

    03/10/2025, 10:34 AM
    Execution failed for task 'flutter web authcompileDebugKotlin'.
    A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction.
  • d

    Deepika Ola

    03/15/2025, 2:00 PM
    👋 Hello, team!
  • d

    Deepika Ola

    03/15/2025, 2:04 PM
    Screenshot 2025-03-15 193257.png
  • d

    Deepika Ola

    03/15/2025, 2:06 PM
    hello everyone! any solutions??
  • n

    Noak-Manuel Nwobodo

    03/17/2025, 10:26 PM
    Just started flutter and I haven't been able to do anything because it keeps giving me errors, even AI can't solve the case, is it the language? Error1: FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\DELL\AndroidStudioProjects\firstapp\android\build.gradle.kts' line: 16 * What went wrong: A problem occurred configuring project ':app'.
    com.android.builder.errors.EvalIssueException: [CXX1101] NDK at C:\Users\DELL\AppData\Local\Android\Sdk\ndk\27.0.12077973 did not have a source.properties file
    * 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 5s Error: Gradle task assembleDebug failed with exit code 1
  • m

    michał K

    04/24/2025, 9:12 AM
    👋 Hello, team!
  • l

    Logesh K

    04/26/2025, 7:09 AM
    Hello team . I've faced an issue while running my flutter project, kindly guide me to solve this FAILURE: Build failed with an exception. * What went wrong: Included build F:\Studio Projects-28-11-2023\datamites\packages\flutter_tools\gradle has build path :gradle which is the same as included build C:\Users\Datamites\fvm\versions\3.19.0\packages\flutter_tools\gradle * What went wrong: Included build F:\Studio Projects-28-11-2023\datamites\packages\flutter_tools\gradle has build path :gradle which is the same as included build C:\Users\Datamites\fvm\versions\3.19.0\packages\flutter_tools\gradle * 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.
  • j

    Joy

    05/04/2025, 3:28 PM
    ❯ flutter run -d emulator-5554
    Copy code
    Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':cf56914b32:compileKotlin'.
    > java.nio.file.NoSuchFileException: /nix/store/s4n9rd6y8aiychhpylmkvpf0yh0migj9-flutter-wrapped-3.29.3-sdk-links/packages/flutter_
    tools/gradle/.gradle/kotlin/sessions/kotlin-compiler-12913036745881058983.salive
    
    * 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 771ms
    Running Gradle task 'assembleDebug'...                           1,372ms
    Error: Gradle task assembleDebug failed with exit code 1
    I tried to redirect
    gradle
    related path with environment path and gradle property file, but neither work:
    Copy code
    ❯ flutter run -d emulator-5554 -Porg.gradle.user.home=/Users/me/.gradle
    
    ❯ export GRADLE_USER_HOME=/Users/me/.gradle/
    ❯ export ANDROID_GRADLE_USER_HOME=/Users/me/.gradle/
    
    ❯ cat android/gradle.properties 
    gradle.user.home=/Users/me/.gradle/
    android.gradle.user.home=/Users/me/.gradle/
    android.overridePathCheck=true
    Is it possible to redirect gradle cache path to solve this?
  • s

    Safwane

    05/09/2025, 10:10 AM
    Hi everyone I've faced an issue while running my flutter app: "FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '17.0.15'. * 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" So he told me that he could not determine my java version but I don't understand why since I'm using : "distributionUrl=https\:<//services.gradle.org/distributions/gradle-8.2-all.zip>" So it's supposed to be compatible with it I checked my Java version and everything is setup correctly : echo $JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64 Yesterday everything was working perfectly I didn't touch anything 😬
  • m

    Mbuk Edidiong

    06/11/2025, 7:38 PM
    👋 Hello, team!
  • m

    Mujeeb Khawaja

    07/06/2025, 8:57 AM
    Hi, I hope you guys are doing well. I am facing “Failed create parent directory” in my flutter projects. I ran
    flutter clean
    followed by
    flutter run
    , and the app was up and running. However, the problem is that it only works from the terminal. If I try to run the app using the VS Code GUI (the button in the top right), the same error reappears. Even after running
    flutter clean
    and then clicking the debug button, the error still persists. Below is the error "Launching lib\main.dart on SM N975F in debug mode… FAILURE: Build failed with an exception. • What went wrong: Execution failed for task ‘appcompileFlutterBuildDebug’.
    Failed to create parent directory ‘C:\Users\Mujeeb’ when creating directory ‘C:\Users\Mujeeb\ Khawaja\Desktop\flutter\ projects\new\ videx\videx\build\app\intermediates\flutter\debug\flutter_assets’
    • 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 6s Error: Gradle task assembleDebug failed with exit code 1" My directory name in “This PC” is “C:\Users\Mujeeb Khawaja”, not ‘C:\Users\Mujeeb’ and flutter is trying to do "'C:\Users\Mujeeb\ Khawaja" Can anyone have any idea how to solve this error.