Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Gradle build failure related to Cargokit on Linux when using flutter_quill_extensions #2224

Closed
1 task done
zhangwenxia opened this issue Sep 14, 2024 · 5 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@zhangwenxia
Copy link

Is there an existing issue for this?

Flutter Quill version

flutter_quill: ^10.5.18 、flutter_quill_extensions: ^10.5.18

Steps to reproduce

flutter build apk

Expected results

Run successfully

Actual results

1、flutter build apk

Error reported as follows:
SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = objects.githubusercontent.com, port = 61413, uri=https://github.com/irondash/irondash/releases/download/precompiled_c8cbb92de1e8b3dc787cdf8cb122c753/i686-linux-android_libirondash_engine_context_native.so.sig
SEVERE: --------------------------------------------------------------------------------
SEVERE: #0 IOClient.send (package:http/src/io_client.dart:119:7)
SEVERE:
SEVERE: #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
SEVERE:
SEVERE: #2 _withClient (package:http/http.dart:166:12)
SEVERE:
SEVERE: #3 ArtifactProvider._get (package:build_tool/src/artifacts_provider.dart:165:16)
SEVERE:
SEVERE: #4 ArtifactProvider._tryDownloadArtifacts (package:build_tool/src/artifacts_provider.dart:192:23)
SEVERE:
SEVERE: #5 ArtifactProvider._getPrecompiledArtifacts (package:build_tool/src/artifacts_provider.dart:133:11)
SEVERE:
SEVERE: #6 ArtifactProvider.getArtifacts (package:build_tool/src/artifacts_provider.dart:54:20)
SEVERE:
SEVERE: #7 BuildGradle.build (package:build_tool/src/build_gradle.dart:32:23)
SEVERE:
SEVERE: #8 BuildGradleCommand.runBuildCommand (package:build_tool/src/build_tool.dart:62:5)
SEVERE:
SEVERE: #9 BuildCommand.run (package:build_tool/src/build_tool.dart:34:5)
SEVERE:
SEVERE: #10 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
SEVERE:
SEVERE: #11 runMain (package:build_tool/src/build_tool.dart:248:5)
SEVERE:
SEVERE: --------------------------------------------------------------------------------
SEVERE: BuildTool arguments: [build-gradle]
SEVERE: ================================================================================

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more 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.
==============================================================================

2: Task failed with an exception.

  • Where:
    Script '/Users/zhangwenxia/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/irondash_engine_context-0.5.4/cargokit/gradle/plugin.gradle' line: 65

  • What went wrong:
    Execution failed for task ':irondash_engine_context:cargokitCargoBuildIrondash_engine_context_nativeDebug'.

Process 'command '/Users/zhangwenxia/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/irondash_engine_context-0.5.4/cargokit/gradle/../run_build_tool.sh'' 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.
==============================================================================

Code sample

No response

Additional Context

No response

@zhangwenxia zhangwenxia added the bug Something isn't working label Sep 14, 2024
@EchoEllet
Copy link
Collaborator

EchoEllet commented Sep 14, 2024

It seems like a connection issue

A workaround for now is to exclude the flutter_quill_extensions or super_clipboard plugin from the extensions package.

I might move super_clipboard to a new package quill_super_clipboard (to make it optional) and provide some default implementation in quill_native_bridge for Android and iOS.

Once #2230 is done, we will be ready to introduce a breaking change that move super_clipboard outside of flutter_quill_extensions.

@zhangwenxia
Copy link
Author

It seems like a connection issue

A workaround for now is to exclude the flutter_quill_extensions or super_clipboard plugin from the extensions package.

I might move super_clipboard to a new package quill_super_clipboard (to make it optional) and provide some default implementation in quill_native_bridge for Android and iOS.

@EchoEllet EchoEllet changed the title flutter build apk error Android Gradle build failure related to Cargokit on Linux when using flutter_quill_extensions Sep 18, 2024
@EchoEllet
Copy link
Collaborator

To confirm, does excluding flutter_quill_extensions fixes the issue?

@zhangwenxia
Copy link
Author

To confirm, does excluding flutter_quill_extensions fixes the issue?

excluding flutter_quill_extensions running successfully
The project encountered an error after upgrading from version 3.7.12 to 3.24.2
Thank you very much for your answer. Thank you

@zhangwenxia zhangwenxia closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
@EchoEllet
Copy link
Collaborator

You're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants