Skip to content

flutter run gradle task assembledebug failed with exit code 1 #55

Open

Description

@alexaung

I got the error and I found out ./gradlew build show the following error.
flutter doctor

`[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale en-GB)
• Flutter version 2.8.1 at /Users/aungmyooo/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (7 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/aungmyooo/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• 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.10+0-b96-7281165)

[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.34.0

[✓] Connected device (3 available)
• SM N975F (mobile) • RF8M82Y3K9A • android-arm64 • Android 11 (API 30)
• Aung Myo’s iPhone (mobile) • 06e02964e429eeebf29550b03ef955abe09891ef • ios • iOS 15.2.1 19C63
• Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.99

• No issues found!`

`Execution optimizations have been disabled for task ':app:compileFlutterBuildDebug' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/aungmyooo/Development/thitsarparami/thitsarparami.mobile/android/app/build/intermediates/flutter/release/flutter_assets/.env.dev'. Reason: Task ':app:compileFlutterBuildDebug' uses this output of task ':app:compileFlutterBuildRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/aungmyooo/Development/thitsarparami/thitsarparami.mobile/android/app/build/intermediates/flutter/release/flutter_assets/.env.prod'. Reason: Task ':app:compileFlutterBuildDebug' uses this output of task ':app:compileFlutterBuildRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/aungmyooo/Development/thitsarparami/thitsarparami.mobile/android/app/build/intermediates/flutter/release/flutter_assets/android/app/build/intermediates/flutter/release/flutter_assets/.env.dev'. Reason: Task ':app:compileFlutterBuildDebug' uses this output of task ':app:compileFlutterBuildRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/aungmyooo/Development/thitsarparami/thitsarparami.mobile/android/app/build/intermediates/flutter/release/flutter_assets/android/app/build/intermediates/flutter/release/flutter_assets/.env.prod'. Reason: Task ':app:compileFlutterBuildDebug' uses this output of task ':app:compileFlutterBuildRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/aungmyooo/Development/thitsarparami/thitsarparami.mobile/android/app/build/intermediates/flutter/release/flutter_assets/android/app/build/intermediates/flutter/release/flutter_assets/android/app/build/intermediates/flutter/release/flutter_assets/.env.dev'. Reason: Task ':app:compileFlutterBuildDebug' uses this output of task ':app:compileFlutterBuildRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/aungmyooo/Development/thitsarparami/thitsarparami.mobile/android/app/build/intermediates/flutter/release/flutter_assets/android/app/build/intermediates/flutter/release/flutter_assets/android/app/build/intermediates/flutter/release/flutter_assets/.env.prod'. Reason: Task ':app:compileFlutterBuildDebug' uses this output of task ':app:compileFlutterBuildRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions