flutter
  • Fredrick Dankwah

    Fredrick Dankwah

    07/25/2022, 4:04 AM
    please any help on this A problem occurred evaluating project ‘:app’.
    No signature of method: build_9rg3qo67vh25wnwiug2tt20t.android() is applicable for argument types: (build_9rg3qo67vh25wnwiug2tt20t$_run_closure2) values: [build_9rg3qo67vh25wnwiug2tt20t$_run_closure2@632cc5ff]
  • tastywaffle

    tastywaffle

    07/26/2022, 5:28 AM
    Hi, i want build my Flutter app(bundle) & i got error. if u help to solve my problem, reallyReally appreciate!: -Error message FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\user\IdeaProjects\relayWriting\android\app\build.gradle' line: 42 * What went wrong: A problem occurred evaluating project ':app'.
    No signature of method: build_c3l4fjlvmd1tu5wmv81djoazh.android() is applicable for argument types: (build_c3l4fjlvmd1tu5wmv81djoazh$_run_closure2)
    values: [build_c3l4fjlvmd1tu5wmv81djoazh$_run_closure2@7e4ad7b4] * 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 10s
  • a

    Alberto Cavallo

    07/29/2022, 11:20 AM
    Hey guys, running my flutter app i get this error, Could anyone help me? Thanks.* What went wrong: Execution failed for task ':cloud_firestore:compileDebugJavaWithJavac'.
    Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().
    Cannot lock Java compile cache (C:\Users\alber\StudioProjects\archive\android.gradle\6.7\javaCompile) as it has already been locked by this process.
  • s

    Slackbot

    07/29/2022, 3:53 PM
    This message was deleted.
  • t

    Tony Nyame

    08/03/2022, 10:58 AM
    Hi guys, running my flutter app with maven publish and I get this error when I run gradle publish: I need help.* What went wrong: Task 'publish' not found in root project 'xxxx'. this is my build.gradle file in the root of my project.
    buildscript {
    ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } plugins { id("java-gradle-plugin") id("maven-publish") id("com.gradle.plugin-publish") version "1.0.0-rc-1" } version = '0.0.1-SNAPSHOT' publishing { repositories { maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/anthonynyame/Flutter-App") credentials { username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR") password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") } } } publications { gpr(MavenPublication) { from(components.java) } } }
  • r

    ramkumar subburaj

    08/06/2022, 9:21 AM
    👋 Hello, team!
  • r

    ramkumar subburaj

    08/06/2022, 9:22 AM
    Note: Recompile with -Xlint:deprecation for details. e: /Users/apple/.pub-cache/hosted/pub.dartlang.org/in_app_update-2.0.0/android/src/main/kotlin/de/ffuf/in_app_update/InAppUpdatePlugin.kt: (226, 26): Type mismatch: inferred type is String? but String was expected FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':in_app_update:compileDebugKotlin'.
    Compilation error. See log for more details
  • r

    ramkumar subburaj

    08/06/2022, 9:23 AM
    i receiving this error... what i have to do to clear this?
  • a

    Arya Mohajer

    08/21/2022, 2:11 PM
    👋 Hello, team!
  • a

    Arya Mohajer

    08/21/2022, 2:15 PM
    FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugResources'.
    A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
    Android resource linking failed ERROR
    :F:\programming\flutter\project\Mr.one\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:17: AAPT: error: resource mipmap/ic_launcher (aka Mr.one.com.mrone:mipmap/ic_launcher) not found. * 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 2s Exception: Gradle task assembleDebug failed with exit code 1
  • a

    Arya Mohajer

    08/21/2022, 2:16 PM
    Hello/ i tryed to change my icon app and i receive this error is anybody knows what is my problme.... #flutter
  • l

    Lütfi ERASLAN

    08/24/2022, 9:27 AM
    hi,i have a trouble
  • l

    Lütfi ERASLAN

    08/24/2022, 9:27 AM
    Launching lib\main.dart on AOSP on IA Emulator in debug mode... Running Gradle task 'assembleDebug'... lib/main.dart4️⃣10: Error: Method not found: 'MateriaLApp'. runApp(MateriaLApp( ^^^^^^^^^^^ FAILURE: Build failed with an exception. * Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156 * What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
    Process 'command 'C:\src\flutter\bin\flutter.bat'' 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.
    * Get more help at https://help.gradle.org BU�LD FAILED in 22s Exception: Gradle task assembleDebug failed with exit code 1
  • f

    fatima-ezzahra El ayadi

    10/13/2022, 10:45 AM
    hello team, i'm new at using slack. I need some help with my flutter code : FAILURE: Build failed with an exception. * What went wrong: Value 'C:\Program Files\Java\jdk-11.0.10' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid) * 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.
  • e

    Eternex Systems

    10/20/2022, 7:58 AM
    👋 Hello, team!
  • e

    Eternex Systems

    10/20/2022, 8:01 AM
    0 I tried to run a brand new Flutter Android App but ran into a Build Gradle problem. This problem is affecting all Flutter apps on my machine... I've never had this type of issue before so kinda confused... details of the error are as follows:
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Gradle could not start your build.
    > Could not create service of type BuildLifecycleController using ServicesProvider.createBuildLifecycleController().
             > Could not configure services using GradleScopeCompileServices.configure().
    
    * 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 34s
    Running Gradle task 'assembleRelease'...                           39.5s
    Gradle task assembleRelease failed with exit code 1
    Things I've tried:
    1. flutter doctor -v (details below):
    
        [√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.19043.2006], locale en-US)
            • Flutter version 3.0.5 at C:\src\flutter
            • Upstream repository <https://github.com/flutter/flutter.git>
            • Framework revision f1875d570e (3 months ago), 2022-07-13 11:24:16 -0700
            • Engine revision e85ea0e79c
            • Dart version 2.17.6
            • DevTools version 2.12.2
        
        Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK 
        version 32.1.0-rc1)
            • Android SDK at C:\Users\Udhedhe\AppData\Local\Android\Sdk
            • Platform android-32, build-tools 32.1.0-rc1
            • ANDROID_HOME = C:\Users\Udhedhe\AppData\Local\Android\Sdk
            • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
            • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
            • All Android licenses accepted.
        
        [√] Chrome - develop for the web
            • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
        
        [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
            • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
            • Visual Studio Community 2022 version 17.2.32630.192
            • Windows 10 SDK version 10.0.19041.0
        
        [√] Android Studio (version 2021.1)
            • Android Studio at C:\Program Files\Android\Android Studio
            • Flutter plugin can be installed from:
               <https://plugins.jetbrains.com/plugin/9212-flutter>
            • Dart plugin can be installed from:
               <https://plugins.jetbrains.com/plugin/6351-dart>
            • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
        
        [√] VS Code, 64-bit edition (version 1.71.0)
            • VS Code at C:\Program Files\Microsoft VS Code
            • Flutter extension version 3.50.0
        
        [√] Connected device (3 available)
            • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19043.2006]
            • Chrome (web)      • chrome  • web-javascript • Google Chrome 106.0.5249.119
            • Edge (web)        • edge    • web-javascript • Microsoft Edge 106.0.1370.42
            ! Device emulator-5554 is offline.
    1. I've executed
    flutter clean
    2. I've executed
    flutter packages pub cache clean
    3. I've executed
    ./gradlew clean
    in the android folder 4. I've executed
    ./gradlew build
    in the android folder 5. I've restarted my computer 10 million times So far nothing has worked... Here are details of my
    build.gradle
    file
    def localProperties = new Properties()
    def localPropertiesFile = rootProject.file('local.properties')
    if (localPropertiesFile.exists()) {
        localPropertiesFile.withReader('UTF-8') { reader ->
            localProperties.load(reader)
        }
    }
    
    def flutterRoot = localProperties.getProperty('flutter.sdk')
    if (flutterRoot == null) {
        throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
    }
    
    def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
    if (flutterVersionCode == null) {
        flutterVersionCode = '1'
    }
    
    def flutterVersionName = localProperties.getProperty('flutter.versionName')
    if (flutterVersionName == null) {
        flutterVersionName = '1.0'
    }
    
    apply plugin: 'com.android.application'
    apply plugin: 'kotlin-android'
    apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
    
    android {
        compileSdkVersion flutter.compileSdkVersion
        ndkVersion flutter.ndkVersion
    
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    
        kotlinOptions {
            jvmTarget = '1.8'
        }
    
        sourceSets {
            main.java.srcDirs += 'src/main/kotlin'
        }
    
        defaultConfig {
            // TODO: Specify your own unique Application ID (<https://developer.android.com/studio/build/application-id.html>).
            applicationId "com.example.klant_jamb_prepare"
            // You can update the following values to match your application needs.
            // For more information, see: <https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration>.
            minSdkVersion flutter.minSdkVersion
            targetSdkVersion flutter.targetSdkVersion
            versionCode flutterVersionCode.toInteger()
            versionName flutterVersionName
        }
    
        buildTypes {
            release {
                // TODO: Add your own signing config for the release build.
                // Signing with the debug keys for now, so `flutter run --release` works.
                signingConfig signingConfigs.debug
            }
        }
    }
    
    flutter {
        source '../..'
    }
    
    dependencies {
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    }
    Here's the details from java -version:
    java version "11.0.15.1" 2022-04-22 LTS
    Java(TM) SE Runtime Environment 18.9 (build 11.0.15.1+2-LTS-10)
    Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.15.1+2-LTS-10, mixed mode)
    What can I do now to make this error go away??? Thank you for any help...
  • e

    Emmanuel Adeniji

    11/08/2022, 1:26 PM
    Hello, I tried running an app on android studio but it was not successful and it shows the error below on the terminal:
  • e

    Emmanuel Adeniji

    11/08/2022, 1:26 PM
    PS C:\Users\user\Desktop\tutu\android> ./gradlew signingReport FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\user\Desktop\tutu\android\build.gradle' line: 26 * What went wrong: A problem occurred evaluating root project 'android'.
    A problem occurred configuring project ':app'.
    Could not open proj generic class cache for build file 'C:\Users\user\Desktop\tutu\android\app\build.gradle' (C:\Users\user.gradle\caches\7.4\scripts\1i9f2ls qtsq09pokkq6fqe2hh). BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 63
    * 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 2s
  • e

    Emmanuel Adeniji

    11/08/2022, 1:30 PM
    How can I resolve this error,, please?
  • s

    swaroop

    11/10/2022, 8:07 AM
    Hi I have an error in flutter build, can i get help?
  • s

    swaroop

    11/10/2022, 8:07 AM
  • o

    oz oziz

    11/13/2022, 7:29 PM
    [ +99 ms] FAILURE: Build failed with an exception. [ +3 ms] * What went wrong: [ ] Execution failed for task ':app:validateSigningDebug'. [ ] > java.util.concurrent.ExecutionException: com.android.builder.utils.SynchronizedFile$ActionExecutionException: java.io.IOException: com.android.ide.common.signing.KeytoolException: Failed to create keystore. [ ] * 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 6s
  • c

    Calvin Williams

    11/23/2022, 9:58 AM
    Hello please I need help my Flutter Gradle is throwing an error FAILURE: Build failed with an exception. * What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':nb_utils' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 * 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 11s Exception: Gradle task assembleDebug failed with exit code 1
  • l

    Li Jimmy

    11/25/2022, 2:15 AM
    @Calvin Williams Maybe you need to upgrade the version of kotlin-gradle-plugin, use suggested version 1.5.20 ? And you can also operate according to the error prompt of gradle build failure, try: run ?
  • nate

    nate

    11/29/2022, 1:20 PM
    Hi Flutter-ers! I'm trying to gather more information about the general gradle docs experience. If you have a couple of minutes to fill out a survey on the documentation, I would very much appreciate your thoughts: https://docs.google.com/forms/d/e/1FAIpQLSclpOsiTaXqijUP17yio8-I7bCSyw7nNTCbcGcH1E59AdfsZg/viewform?usp=pp_url
  • s

    Subz Singh

    12/01/2022, 5:53 PM
    hello i need help in flutter