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

    Ravi Chauhan

    11/28/2024, 7:37 PM
    Settings file '/Users/ravikumar.chauhan/Desktop/servicenow/workspace1/app-automation/settings.gradle' line: 2 A problem occurred evaluating settings 'app-automation'.
    Could not read script '/Users/ravikumar.chauhan/Desktop/servicenow/workspace1/build-now/buildSrcCommon/common-settings.gradle' as it does not exist.
    * 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.
  • r

    Ravi Chauhan

    11/28/2024, 7:37 PM
    please check below issue which I am facing after importing the project. please help to rectify this. urgent
  • p

    PeshoO R. Marzouq

    12/01/2024, 12:44 PM
    Hello Hello πŸ‘‹ Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: Could not open cp_settings generic class cache for settings file 'D:\PeshoPro\Eng Mohamed Saad\flutter\Session16\android\settings.gradle' (C:\Users\Pesho\.gradle\caches\8.1\scripts\e0yhmtegstlpw18tk2npb244h).
    BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
    * 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 4s β”Œβ”€ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐ β”‚ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using β”‚ β”‚ for Gradle. β”‚ β”‚ β”‚ β”‚ If you recently upgraded Android Studio, consult the migration guide at β”‚ β”‚ https://flutter.dev/to/to/java-gradle-incompatibility. β”‚ β”‚ β”‚ β”‚ Otherwise, to fix this issue, first, check the Java version used by Flutter by running
    Copy code
    flutter β”‚
    β”‚ doctor --verbose
    . β”‚ β”‚ β”‚ β”‚ Then, update the Gradle version specified in D:\PeshoPro\Eng Mohamed β”‚ β”‚ Saad\flutter\Session16\android\gradle\wrapper\gradle-wrapper.properties to be compatible with β”‚ β”‚ that Java version. See the link below for more information on compatible Java/Gradle versions: β”‚ β”‚ https://docs.gradle.org/current/userguide/compatibility.html#java β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • 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?